Skip to main content
Glama

list_apis

Retrieve a complete list of APIs available in the ACOMO MCP Server for API exploration and backend service interaction.

Instructions

acomoのAPI一覧を返す

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.ts:34-46 (registration)
    Registers the 'list_apis' MCP tool with an empty input schema. The handler serializes the result of listOperations() as JSON text content.
    server.registerTool( "list_apis", { title: "List APIs", description: "acomoのAPI一覧を返す", inputSchema: {}, }, async () => ({ content: [ { type: "text", text: JSON.stringify(await listOperations()) }, ], }) );
  • The tool handler function passed to registerTool, which calls listOperations() and returns the result as JSON-formatted text.
    async () => ({ content: [ { type: "text", text: JSON.stringify(await listOperations()) }, ], })
  • TypeScript type definition for an API Operation, used as the structure for list_apis output.
    export type Operation = { operationId?: string; method: string; path: string; summary?: string; };
  • Main helper function that loads the OpenAPI specification and extracts a list of operations (operationId, method, path, summary). This is the core logic executed by the list_apis tool.
    export async function listOperations(): Promise<Operation[]> { const spec = await loadOpenApi(); const result: Operation[] = []; for (const [path, methods] of Object.entries(spec.paths ?? {})) { for (const [method, op] of Object.entries(methods ?? {})) { // skip non-http verbs if ( !["get", "post", "put", "delete", "patch", "head", "options"].includes( method.toLowerCase() ) ) continue; result.push({ operationId: (op as any)?.operationId, method: method.toUpperCase(), path, summary: (op as any)?.summary, }); } } return result; }

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