Skip to main content
Glama
Agent Tools (x402 + MCP + A2A directory)

Agent Tools (x402 + MCP + A2A directory)

Official

Search A2A agents

search_agents
Read-onlyIdempotent

Find peer A2A agents by intent to delegate tasks when a single API call or MCP tool is not enough. Returns agent cards, endpoints, skills, health, latency, and x402 support.

Instructions

Search A2A agents only (peer agents you can delegate a task to) by intent.

A2A agents publish an agent card and a JSON-RPC endpoint. Use this when the task is better handed to another agent than done with a single API call (search) or an MCP tool (search_mcp_servers). Read-only.

Args: intent: The task or capability to delegate, plain language. top_k: Max number of agents to return (default 5, max 25). x402_only: If true, only return agents that accept x402 payment.

Returns: {intent, count, agents}. Each agent has slug, name, description, endpoint_url, card_url, skill_names, auth_schemes, x402_supported, health, latency_ms and conformance. Pass slug to get_agent for the full card.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "intent": "<intent>"
    },
    "name": "search_agents"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_kNo
intentYes
x402_onlyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the description's 'Read-only' is largely redundant. It does add context beyond the annotations: that A2A agents publish an agent card and a JSON-RPC endpoint, and that `x402_only` restricts to x402-accepting agents, which explains what the open-world search actually resolves to.

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

Conciseness4/5

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

Front-loaded with the scoping rule and the routing decision before the args, which is the right order. The Args block is efficient; the Returns block is the least essential part given an output schema already exists, but it is short and does not bloat the definition.

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

Completeness4/5

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

All three parameters are documented and the tool's position among siblings is clear, which is complete for a simple three-param search. The one redundancy is restating return fields (`slug`, `endpoint_url`, `health`, etc.) that the output schema already covers, though it usefully notes that `slug` feeds `get_agent`.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the full burden and does so: `intent` is described as plain-language task/capability, `top_k` gains a max of 25 that the schema does not express, and `x402_only` is explained semantically rather than just by name. Minor gap: `intent` phrasing guidance is brief and there is no detail on how matching/scoring works.

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

Purpose5/5

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

States a specific verb and resource ('Search A2A agents only ... by intent') and immediately disambiguates the resource as peer agents you can delegate to, explicitly excluding what `search` and `search_mcp_servers` cover. An agent can distinguish this from all three named siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit selection rule: use it 'when the task is better handed to another agent than done with a single API call (`search`) or an MCP tool (`search_mcp_servers`)'. Both the condition and the competing alternatives are named, which is exactly the routing guidance an agent needs.

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