API-get-input-schema
Retrieve the input schema for any API to ensure proper data formatting before execution. This tool is essential for preparing accurate API calls within the RSS3 MCP Server.
Instructions
Get the input schema for a given API. We should always use this tool to get the input schema for a given API before calling the API.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toolName | No | The name of the tool to get the input schema for |
Implementation Reference
- index.js:156-175 (handler)Handler logic for the API-get-input-schema tool. It iterates through available MCP tools to find the matching toolName and returns its inputSchema as JSON text content.if (name === "API-get-input-schema") { for (const mcpToolWithClient of mcpToolWithClients) { for (const [toolName, def] of Object.entries( mcpToolWithClient.mcpTools.tools, )) { for (const method of def.methods) { const toolNameWithMethod = `${toolName}-${method.name}`; const truncatedToolName = toolNameWithMethod.slice(0, 64); if (truncatedToolName === params.toolName) { return { content: [ { type: "text", text: JSON.stringify(method.inputSchema) }, ], }; } } } } throw new Error(`Method ${params.toolName} not found`); }
- index.js:129-142 (registration)Registration of the API-get-input-schema tool in the ListToolsRequestHandler, including its name, description, and inputSchema.tools.unshift({ name: "API-get-input-schema", description: "Get the input schema for a given API. We should always use this tool to get the input schema for a given API before calling the API.", inputSchema: { type: "object", properties: { toolName: { type: "string", description: "The name of the tool to get the input schema for", }, }, }, });
- index.js:133-141 (schema)Input schema definition for the API-get-input-schema tool itself, requiring a 'toolName' string.inputSchema: { type: "object", properties: { toolName: { type: "string", description: "The name of the tool to get the input schema for", }, }, },