Skip to main content
Glama

list_agents

Browse indexed ACP agents with trust scores to discover and evaluate available agents in the maiat-protocol ecosystem.

Instructions

Browse indexed agents with their trust scores. Returns a paginated list of all known ACP agents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax number of agents to return (default: 50)

Implementation Reference

  • The MCP tool handler for 'list_agents' which executes the request via the SDK.
    async ({ limit }) => {
      try {
        const data = await sdk.listAgents(limit);
        return {
          content: [
            {
              type: "text" as const,
              text: JSON.stringify(data, null, 2),
            },
          ],
        };
  • Tool definition and schema registration for 'list_agents' in the MCP server.
    server.tool(
      "list_agents",
      "Browse indexed agents with their trust scores. Returns a paginated list of all known ACP agents.",
      {
        limit: z
          .number()
          .default(50)
          .describe("Max number of agents to return (default: 50)"),
      },
  • The actual SDK method that performs the API call to fetch the list of agents.
    async listAgents(limit = 50): Promise<{ agents: AgentTrustResult[]; total: number }> {
      return this.request(`/api/v1/agents?limit=${limit}`);
    }

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/JhiNResH/maiat-protocol'

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