Interface IMcpTool

MCP tool type.

IMcpTool is an interface representing a tool type defined in the MCP (Model Context Protocol).

Note that, don't be confused with IMcpLlmFunction type, that is used for McpLlm.application which converts this IMcpTool type to the IMcpLlmFunction type.

Jeongho Nam - https://github.com/samchon

Don't be confused with IMcpLlmFunction

interface IMcpTool {
    description?: string;
    inputSchema: IInputSchema;
    name: string;
}

Properties

description?: string

Description of the tool.

inputSchema: IInputSchema

Input schema of the tool.

The input schema, parameters of the tool.

As MCP (Model Context Protocol) does not restict the JSON schema specification, @samchon/openapi has defined it to be universal structure OpenApiV3_1.IJsonSchema which can cover every JSON schema specification.

name: string

Name of the tool.

64