Skip to main content
Glama
tadas-github

a2asearch-mcp

list_agents

Browse and filter AI agents, MCP servers, CLI tools, and skills from the A2ASearch directory by type, popularity, or recency.

Instructions

List agents from A2ASearch, optionally filtered by type. Use this to browse top agents by category.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoFilter by type (optional — omit for all types)
sortNoSort order: 'stars' for most popular, 'new' for recently addedstars
limitNoNumber of results (1-20, default 10)

Implementation Reference

  • Definition of the list_agents tool including name, description, and inputSchema.
    {
      name: "list_agents",
      description:
        "List agents from A2ASearch, optionally filtered by type. " +
        "Use this to browse top agents by category.",
      inputSchema: {
        type: "object",
        properties: {
          type: {
            type: "string",
            enum: ["MCP Server", "CLI Tool", "AI Coding Agent", "Agent Skill", "A2A Agent"],
            description: "Filter by type (optional — omit for all types)",
          },
          sort: {
            type: "string",
            enum: ["stars", "new"],
            description: "Sort order: 'stars' for most popular, 'new' for recently added",
            default: "stars",
          },
          limit: {
            type: "number",
            description: "Number of results (1-20, default 10)",
            default: 10,
          },
        },
      },
    },
  • Implementation of the list_agents tool handler, which fetches agent data from an API and formats the output.
    if (name === "list_agents") {
      const { type, sort = "stars", limit = 10 } = args;
      const params = new URLSearchParams({
        per_page: String(Math.min(20, Math.max(1, limit))),
        sort,
      });
      if (type) params.set("type", type);
    
      const res = await fetch(`${API_BASE}/agents?${params}`);
      if (!res.ok) throw new Error(`API error: ${res.status}`);
      const data = await res.json();
    
      const label = type ? `${type}s` : "agents";
      const sortLabel = sort === "stars" ? "by stars" : "recently added";
    
      return {
        content: [
          {
            type: "text",
            text:
              `Top ${data.data.length} ${label} ${sortLabel} (${data.pagination.total} total)\n\n` +
              data.data
                .map(
                  (a, i) =>
                    `${i + 1}. **${a.name}** — ${a.description?.slice(0, 80) || "No description"}\n` +
                    `   ⭐ ${a.stars?.toLocaleString() || 0}  |  ${a.agentCardUrl}`
                )
                .join("\n"),
          },
        ],
      };
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'browse top agents by category,' which hints at a read-only operation, but doesn't explicitly state safety (e.g., non-destructive), rate limits, authentication needs, or what the output looks like (e.g., pagination, format). For a tool with no annotations, this leaves significant gaps in understanding its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences with zero waste. The first sentence states the core purpose, and the second provides usage guidance. It's front-loaded and efficiently structured, making it easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (3 parameters, no output schema, no annotations), the description is adequate but incomplete. It covers the basic purpose and hints at usage, but lacks details on behavioral traits (e.g., safety, output format) that are crucial since annotations are absent. It meets minimum viability but has clear gaps in context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with all parameters well-documented in the schema (type, sort, limit). The description adds minimal value beyond the schema, mentioning 'optionally filtered by type' and 'browse top agents by category,' which loosely relates to the 'type' and 'sort' parameters but doesn't provide additional syntax or usage details. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'List agents from A2ASearch, optionally filtered by type.' It specifies the verb ('List'), resource ('agents'), and source ('A2ASearch'), and mentions optional filtering. However, it doesn't explicitly differentiate from sibling tools like 'search_agents' beyond implying this is for browsing rather than searching.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides some usage context: 'Use this to browse top agents by category.' This implies it's for general browsing rather than targeted searches, but it doesn't explicitly state when to use this vs. 'search_agents' or 'get_agent', nor does it mention any prerequisites or exclusions. The guidance is helpful but incomplete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/tadas-github/a2asearch-mcp'

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