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

Agent Tools (x402 + MCP + A2A directory)

Official

Get x402 API details

get
Read-onlyIdempotent

Retrieve an x402 paid API record by slug to review payment details, call instructions, health, latency, and on-chain demand after a search or recommendation.

Instructions

Get the full record of one x402 paid API by its slug.

Use after search, recommend or ask to learn exactly how to call and pay. For MCP servers use get_mcp_server, for A2A agents get_agent. Read-only; never pays.

Args: slug: Service slug from a search result (e.g. "some-weather-api").

Returns: The service card: url, description, price_min/price_max, chains, payment (scheme, network, asset, pay_to, accepts), call and call_info (how to call, sample resources), health, latency_ms, quality, readiness_grade and on-chain demand (payto_payers_30d, payto_tx_30d). 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"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds the non-obvious fact that this tool 'never pays' despite operating on paid APIs — meaningful context for an agent worried about cost side effects. It also discloses the terminal error case (`{"error": "retired", "status": 410}`), which annotations cannot express. It stops short of covering auth requirements or rate limits, so not a 5.

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?

Front-loaded with the one-line purpose, then usage, then args, then returns — each labeled and scannable. The Returns enumeration is long but directly serves the stated goal of learning 'exactly how to call and pay', so it earns its space rather than padding.

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?

The description is complete for a one-parameter read tool: it names the input source, the payoff (call/payment details), and the failure mode. Since an output schema exists, the detailed field list is somewhat duplicative rather than essential, but it does not mislead and the behavioral picture is whole.

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 must carry the load, and it does: it explains the slug's provenance ('from a search result') and gives a concrete format example ('some-weather-api'). For a single required string this is close to sufficient, though it doesn't state case sensitivity or what a malformed/unknown slug does.

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 ('Get the full record of one x402 paid API by its slug') and immediately distinguishes itself from siblings by naming `get_mcp_server` for MCP servers and `get_agent` for A2A agents. An agent can tell exactly which entity this tool retrieves without opening any 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 explicit sequencing ('Use after `search`, `recommend` or `ask`') and explicit routing to alternatives for the other entity types. Both the when-to-use and the when-to-use-something-else cases are covered, leaving nothing to inference.

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