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

Agent Tools (x402 + MCP + A2A directory)

Official

Get A2A agent card

get_agent
Read-onlyIdempotent

Fetch a full A2A agent record by slug to review endpoint, skills, authentication, payment info, and health before sending tasks.

Instructions

Get the full record of one A2A agent by its slug.

Use after search_agents (or a search_all result with protocol "a2a") to see how to send it a task. Read-only.

Args: slug: A2A agent slug from a search result.

Returns: endpoint_url, card_url, protocol_version, preferred_transport, skills (id, name, description, input/output modes), auth_schemes, x402 payment info (x402_supported, price_hint_usd, payto), latest health, latency and protocol conformance. A retired listing returns {"error": "retired", "status": 410}.

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": {
      "slug": "<slug>"
    },
    "name": "get_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.3/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 redundant 'Read-only' line earns no credit. Past that baseline, the description adds real behavioral context the annotations do not carry: the retired-listing case returns {"error": "retired", "status": 410}, and the record includes health, latency and protocol conformance.

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?

The header sentence is front-loaded and the Args/Returns sections are easy to scan. The Returns block is fairly long and partly restates an existing output schema, so it is slightly over-specified rather than wasteful.

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?

For a one-parameter lookup with full annotations and an output schema, the description covers the workflow dependency, the error case and the shape of the response. Nothing an agent needs to call it correctly appears to be missing.

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 single 'slug' property is documented only as 'Slug'. The description compensates by explaining that it is an 'A2A agent slug from a search result', which tells the agent where the value comes from and what format to expect.

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?

The description opens with a specific verb and resource: 'Get the full record of one **A2A agent** by its slug.' The emphasis on A2A plus the reference to 'a search result' clearly separates it from get_mcp_server and the search_* siblings.

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

Usage Guidelines4/5

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

It gives an explicit workflow position: use it after search_agents (or a search_all result with protocol 'a2a') to learn how to send a task. That is strong when-to-use guidance, but it never states a when-not condition or names a contrasting sibling such as get_mcp_server for the non-A2A case.

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