List components
list_componentsRetrieve a complete list of API schema components (components.schemas) from ACOMO MCP Server for easy API exploration and schema inspection.
Instructions
acomoのAPIスキーマ(components.schemas)の一覧を返す
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:247-259 (registration)Registers the 'list_components' MCP tool, including schema and inline handler.
server.registerTool( "list_components", { title: "List components", description: "acomoのAPIスキーマ(components.schemas)の一覧を返す", inputSchema: {}, }, async () => ({ content: [ { type: "text", text: JSON.stringify(await listComponents()) }, ], }) ); - src/server.ts:254-258 (handler)The tool handler function that calls the listComponents helper and returns the result as JSON-formatted text content.
async () => ({ content: [ { type: "text", text: JSON.stringify(await listComponents()) }, ], }) - src/server.ts:249-253 (schema)Tool metadata and input schema definition (empty input as it takes no parameters).
{ title: "List components", description: "acomoのAPIスキーマ(components.schemas)の一覧を返す", inputSchema: {}, }, - src/openapi.ts:73-76 (helper)Helper function that loads the OpenAPI specification and extracts the list of component schema names.
export async function listComponents(): Promise<string[]> { const spec = await loadOpenApi(); return Object.keys(spec.components?.schemas ?? {}); }