Skip to main content
Glama
RSS3-Network

RSS3 MCP Server

Official
by RSS3-Network

API-get-input-schema

Retrieve the required input structure for any RSS3 API tool to ensure proper data formatting before making API calls.

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 function for the 'API-get-input-schema' tool. It iterates through the MCP tools derived from OpenAPI specs, matches the provided toolName (truncated), and returns the inputSchema of the matching method 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)
    Registers the 'API-get-input-schema' tool in the listTools response by unshifting it to the tools array, providing 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, specifying a 'toolName' string property.
    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