list_tools
Discover available API tools in the Agent Toolbelt catalog with descriptions and pricing information.
Instructions
List all tools available in the Agent Toolbelt API catalog, including descriptions and pricing.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server/src/index.ts:1209-1235 (handler)The handler implementation for the list_tools MCP tool, which fetches a catalog of tools from the API and formats them for the client.
async () => { const url = `${API_BASE_URL}/api/tools/catalog`; const response = await fetch(url); const data = (await response.json()) as any; const lines: string[] = []; lines.push(`Agent Toolbelt — ${data.count} tools available:\n`); for (const tool of data.tools || []) { lines.push(`**${tool.name}** (v${tool.version})`); lines.push(` ${tool.description}`); if (tool.metadata?.pricing) { lines.push(` Pricing: ${tool.metadata.pricing}`); } lines.push(` Endpoint: POST ${tool.endpoint}`); lines.push(""); } return { content: [ { type: "text" as const, text: lines.join("\n"), }, ], }; } - mcp-server/src/index.ts:1201-1208 (registration)The registration of the 'list_tools' MCP tool.
server.registerTool( "list_tools", { title: "List Available Tools", description: "List all tools available in the Agent Toolbelt API catalog, including descriptions and pricing.", inputSchema: {}, },