Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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"),
          },
        ],
      };
    }
  • 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: {},
      },

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/marras0914/agent-toolbelt'

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