---
symbol: ToolCallback
module: "@tsed/cli-mcp"
type: type
meta:
 - name: keywords
   description: api typescript node.js documentation ToolCallback type
---
# ToolCallback - @tsed/cli-mcp

## Usage

```typescript
import { ToolCallback } from "@tsed/cli-mcp/src/fn/defineTool";
```

> See [/packages/cli-mcp/src/fn/defineTool.ts](https://github.com/tsedio/tsed-cli/blob/v7.5.1/packages/cli-mcp/src/fn/defineTool.ts#L0-L0).

## Overview

```ts
type ToolCallback<Args = undefined> = (args: Args, extra: RequestHandlerExtra<ServerRequest, ServerNotification>) => CallToolResult | Promise<CallToolResult>;
```
