Defined in: mcp-tool.ts:14
Options for MCPTool.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
description |
string |
Description that tells the model when to use the tool. | mcp-tool.ts:18 |
mcpClient |
MCPClient |
Client that performs the call. | mcp-tool.ts:24 |
methodName |
string |
MCP method name. | mcp-tool.ts:22 |
name |
string |
Unique tool name. | mcp-tool.ts:16 |
parameters? |
ToolParameters |
JSON Schema of the arguments. | mcp-tool.ts:26 |
serviceName |
string |
MCP service name. | mcp-tool.ts:20 |
transformArgs? |
(args) => unknown |
Converts tool arguments to MCP call arguments. Defaults to the identity function. | mcp-tool.ts:28 |
transformResult? |
(result) => unknown |
Converts the MCP result to the tool result. Defaults to the identity function. | mcp-tool.ts:30 |