Skip to main content
Glama

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
NameRequiredDescriptionDefault
toolNameNoThe name of the tool to get the input schema for

Implementation Reference

  • 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", }, }, }, });
  • 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", }, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RSS3-Network/mcp-server-rss3'

If you have feedback or need assistance with the MCP directory API, please join our Discord server