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

Agent Tools (x402 + MCP + A2A directory)

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AGENT_TOOLS_API_KEYNoOptional agent-tools.cloud API key (only for account-scoped tools such as paid verification)
AGENT_TOOLS_API_BASENoOptional API base URL (default https://agent-tools.cloud)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Discover agent-callable resources from the agent-tools.cloud directory: x402 paid services, MCP servers and A2A agents. Use search for x402 paid APIs, search_mcp_servers for MCP tool servers, search_agents for A2A peer agents, or search_all to look across all three. Use ask for a plain-language recommendation, or recommend for a scored x402 shortlist under a price cap. Then call the matching get* tool for the full call template. To test a paid x402 service once from your own wallet: prepare_paid_verification -> sign typed_data -> execute_paid_verification. Tools never pay or sign on your behalf.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
searchA

Search x402 paid HTTP APIs only (pay-per-call in USDC) and return a raw ranked list.

Pick this when you already know you want an x402 API. For MCP servers use search_mcp_servers, for A2A agents search_agents, for all three at once search_all; for a written recommendation use ask. Read-only; never pays.

Args: intent: What the agent wants to do, in plain English or Chinese (e.g. "fetch user tweets", "check on-chain whale activity"). top_k: Max number of services to return (default 5, max 25). max_price_usd: Hard upper bound on per-call price in USD. Services whose cheapest call exceeds this are filtered out. category: Optional category slug from list_categories (e.g. "search").

Returns: {intent, count, items}. Each item has slug, name, description, url, category, chains, price_min/price_max (USD), health, confidence, tx_30d (EIP-3009 USDC payments in 30 days), payment and call_info. Pass slug to get for the full call template.

getA

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}.

list_categoriesA

List the category slugs used for x402 paid APIs, with how many services each has.

Use it to pick a valid category for search or ask, or to browse what kinds of paid APIs exist. Takes no arguments. Read-only.

Returns: {categories: [{category, count}, ...]}, largest first.

search_mcp_serversA

Search remote MCP servers only (tool/context servers you connect to) by intent.

Use this when the agent wants extra tools via the Model Context Protocol rather than a one-shot paid HTTP call (search) or a peer agent (search_agents). Only servers with a reachable endpoint that we probe daily are returned. Read-only.

Args: intent: What capability the agent is looking for, plain language. top_k: Max number of servers to return (default 5, max 25). chain: Optional chain filter for x402-capable MCP servers (e.g. "base", "solana").

Returns: {intent, count, total_matched, servers}. Each server has slug, name, description, endpoint_url, access (open / key / x402), health_status, confidence and call_hint. Pass slug to get_mcp_server for transport and tool details.

get_mcp_serverA

Get the full record of one MCP server by its slug.

Use after search_mcp_servers (or a search_all result with protocol "mcp") to decide whether and how to connect. Read-only.

Args: slug: MCP server slug from a search result.

Returns: endpoint_url, transport, auth_method, tools (names and schemas seen by our probe), health, latency_ms, conformance, safety_verdict/safety_reasons, quality, readiness_grade, license and source repository. A retired listing returns {"error": "retired", "status": 410}.

search_agentsA

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.

get_agentA

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}.

search_allA

Search x402 APIs, MCP servers and A2A agents together in one ranked list.

Start here when you don't know which kind of resource fits. If you do, the typed tools (search, search_mcp_servers, search_agents) return richer per-type fields. Returns a list, not a written answer (see ask). Read-only.

Args: intent: What the agent wants to accomplish, plain language. protocol: Optional filter, one of "x402", "mcp", "a2a". Omit for all. top_k: Max number of results to return (default 8, max 50).

Returns: {query, protocol, count, total_matched, resources}. Each resource has type (x402 / mcp / a2a), slug, name, description, endpoint_url, access, price_hint, health_status, confidence and call_hint. Use get, get_mcp_server or get_agent by type.

statsA

Current size of the directory: live counts per protocol, no history or rankings.

A quick check of how many x402 services, MCP servers and A2A agents are indexed and how many are healthy right now. For daily ecosystem statistics, findings, top searches, topic or monthly reports use directory_stats instead. Takes no arguments. Read-only.

Returns: {x402, mcp, a2a}. x402 has total, healthy, by_chain; mcp and a2a have total, healthy, conformant, x402_capable, new_7d and access counts. A part that fails to load is returned as {"error": ...} instead of failing the call.

askA

Get a written answer on which x402 / MCP services best fit a task.

The only tool that returns prose: an LLM writes a short answer grounded in directory candidates, plus the ranked services it used. Use it when you want advice; use search / search_all for a plain list, or recommend for a scored x402 shortlist with payment hints. Rate-limited; read-only; never pays.

Args: question: The task, e.g. "translate a document to Japanese under $0.05". top_k: Max number of recommended services (default 5, max 10). max_price_usd: Optional upper bound on per-call price in USD. chain: Optional settlement chain filter (e.g. "base", "solana"). category: Optional category filter (see list_categories). require_healthy: Only consider services whose latest probe was healthy. use_llm: Set false for a faster deterministic ranking without the written answer.

Returns: {query, answer, recommendations, follow_up_questions, llm_used, candidate_count}. Each recommendation has slug, name, url, why, confidence, next_step and a service_card. answer is empty when use_llm is false or the LLM is unavailable.

recommendA

Get a scored x402 shortlist ready to pay: score, price and payment hints per API.

Use when you intend to call and pay an x402 API next and want the payment details up front. Unlike search it adds a score and pay_hint; unlike ask it writes no prose. Discovery only: nothing is paid; settle with your own x402 client. Read-only.

Args: intent: What the agent wants to do, plain language. top_k: Max number of recommendations (default 5, max 20). max_price_usd: Optional upper bound on per-call price in USD. chain: Optional settlement chain filter (e.g. "base"). require_healthy: Only include services whose latest probe was healthy.

Returns: {query, count, settlement, note, recommendations}. Each has slug, name, score, price_hint, pay_hint (scheme, chains, price, flow), call_hint, health_status, confidence, tx_30d and chains.

prepare_paid_verificationA

Quote a sponsored paid verification of an x402 service.

You pay the service once from your own wallet (Base USDC, <= $1; funds go to its payTo). Sign the returned typed_data (EIP-712), then call execute_paid_verification before valid_before. Never signs or pays for you.

Args: slug: Service slug from search / get. payer: 0x address of the paying wallet. api_key: Optional; defaults to AGENT_TOOLS_API_KEY.

execute_paid_verificationA

Send the signed payment to the service once and score the result.

Aborts without paying if price or recipient changed. Never retried; a timeout returns indeterminate.

Args: id: id from prepare_paid_verification. signature: 0x EIP-712 signature of its typed_data by the payer. api_key: Optional; defaults to AGENT_TOOLS_API_KEY.

get_paid_verificationA

Read the status and result of one of your own paid verifications.

Third step of the paid-verification flow (prepare_paid_verification -> execute_paid_verification -> this). Use it to re-check a result later, e.g. after an indeterminate timeout. Read-only; never pays. Needs the same account API key that created the verification.

Args: id: The id returned by prepare_paid_verification. api_key: Optional; defaults to AGENT_TOOLS_API_KEY.

Returns: status (prepared, dispatching, succeeded, delivery_failed, payment_rejected, failed_before_dispatch, indeterminate, expired), amount_usd, settled, checks (response and settlement checks) and the resulting score. Without a key returns {"error": "unauthorized", ...}.

create_api_keyA

Create a free agent-tools.cloud account API key. No sign-up needed.

The key is returned once and cannot be recovered. Store it (for example as AGENT_TOOLS_API_KEY); do not print it back to the user or into logs. It unlocks complete directory_stats lists and paid verification. A few keys per IP per day.

Args: name: Optional label to recognise the key later, e.g. your agent name.

directory_statsA

Daily ecosystem statistics and reports from our probes (not live directory counts).

The published daily snapshot: counts (indexed, reachable, protocol-verified, ready), findings, probe outcomes, top searches by distinct searchers; or one topic page; or one monthly report. For a quick live count of listings use stats. With an account key the topic and search lists are complete; without one they are shortened. Read-only.

Args: view: "all", "mcp", "x402" or "a2a". topic: Optional topic word (e.g. "payment", "weather") for that topic instead. month: Optional "YYYY-MM" for that monthly report instead. api_key: Optional; defaults to AGENT_TOOLS_API_KEY.

Returns: The summary, topic or monthly report as JSON (CC BY 4.0), with its snapshot date; on an HTTP error {"error": "http_error", ...}.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 16 tools

Disambiguation4/5

The set is structured around three resource types (x402 APIs, MCP servers, A2A agents) each with a search+get pair, and descriptions aggressively cross-reference alternatives ("for MCP use search_mcp_servers, for a written recommendation use ask"). The remaining overlap is in the discovery layer — search vs search_all vs recommend vs ask, and stats vs directory_stats — but each of these is explicitly scoped by output shape (list / scored shortlist / prose / live counts / daily snapshot), so misselection risk is low.

Naming Consistency4/5

All names are snake_case and readable, with a clear verb_noun pattern for the typed tools (search_mcp_servers, get_agent, prepare_paid_verification). Minor deviation: the x402 tools drop the noun suffix entirely (bare `search`, `get`, `ask`, `recommend`, `stats`) while the other protocols always carry a suffix, and `stats`/`directory_stats` are noun-only rather than verb-led.

Tool Count4/5

At 16 tools this is just above the comfortable 3-15 band, but the surface decomposes cleanly: 3 search + 3 get pairs, one aggregate search, one category list, one key tool, a 3-step paid-verification flow, and 2 stats views. Almost every tool has a distinct role, though search_all partially duplicates the typed searches and could be derived from them.

Completeness4/5

The discovery lifecycle is well covered: browse categories, search by protocol or across all, drill into full service cards with payment/transport details, get live counts and daily reports, obtain an API key, and run a full quote→execute→poll paid-verification flow. Gaps are minor and workaroundable: no way to submit/register a listing, no feedback or rating tool, and no paginated browse-all for enumerating the directory.

Maintenance

ActivityActive
ResponsivenessOutdated data