Interface IMCPTool<Properties>

Interface for an MCP tool, defining its name, description, and input schema.

interface IMCPTool<Properties = MCPToolProperties> {
    description?: string;
    inputSchema: {
        properties?: Properties;
        required?: string[];
        type: "object";
    };
    name: string;
}

Type Parameters

Properties

description?: string

Optional description of the tool.

inputSchema: { properties?: Properties; required?: string[]; type: "object" }

Schema defining the input structure for the tool.

name: string

Name of the tool.