Skip to main content
Glama

describe_component

Retrieve detailed JSON Schema for a specified schema name within the ACOMO MCP Server. Facilitates API exploration and schema inspection for backend services.

Instructions

指定schema名の詳細(JSON Schema)を返す

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Implementation Reference

  • Handler function that executes the describe_component tool logic: calls getComponentSchema and returns the JSON Schema or an error message.
    async ({ name }: { name: string }) => { const schema = await getComponentSchema(name); if (!schema) return { content: [{ type: "text", text: `Unknown component: ${name}` }], isError: true, }; return { content: [ { type: "text", text: JSON.stringify(schema, null, 2) }, ], }; }
  • Tool metadata including title, description, and input schema requiring a 'name' string parameter using Zod.
    { title: "Describe component", description: "指定schema名の詳細(JSON Schema)を返す", inputSchema: { name: z.string() }, },
  • src/server.ts:261-281 (registration)
    Registration of the 'describe_component' tool using McpServer.registerTool with schema and handler.
    server.registerTool( "describe_component", { title: "Describe component", description: "指定schema名の詳細(JSON Schema)を返す", inputSchema: { name: z.string() }, }, async ({ name }: { name: string }) => { const schema = await getComponentSchema(name); if (!schema) return { content: [{ type: "text", text: `Unknown component: ${name}` }], isError: true, }; return { content: [ { type: "text", text: JSON.stringify(schema, null, 2) }, ], }; } );
  • Helper function that loads the OpenAPI spec and retrieves the schema for the given component name.
    export async function getComponentSchema(name: string): Promise<any | null> { const spec = await loadOpenApi(); return spec.components?.schemas?.[name] ?? null; }

Other Tools

Related Tools

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/progress-all/acomo-mcp-server'

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