Skip to main content
Glama
Agents Trust MCP

Agents Trust MCP

Recommend paid APIs for a task

recommend

Find the paid x402 API to call for a plain-language task, ranked with endpoint URLs, prices, payment networks, request templates, and risk evidence. Use it when you do not know which API to call.

Instructions

Find which paid x402 API to call for a task described in plain words, ranked with evidence. Each pick has the endpoint URL, provider price and payment network, a ready request template, liveness, delivery evidence and risk flags. Use it when you do not yet know which API to call; use inspect instead when you already have one exact endpoint URL, and receipt to confirm settlement after paying. Write need as the task itself ("current weather in Paris"), not a product name; narrow with max_price_usd or chain, and use view=compact to save tokens. Free demo: need exactly "weather", "crypto prices" or "web search" (any case); every other need, including longer weather phrasings, costs 0.01 USDC. Pays only if the wallet owner set AGENTS_TRUST_ENABLE_PAYMENTS=true and AGENTS_TRUST_WALLET_PRIVATE_KEY (Base USDC): one paid call per process, at most AGENTS_TRUST_MAX_CALL_USDC (default 0.01), never retried. Otherwise it errors without paying; errors and empty results are free. Returns JSON {data, payment_attempt_id, request_id}; payment_attempt_id is set only after a paid answer, for use with receipt. data.picks may be shorter than limit, or empty, when evidence is insufficient.

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": {
      "need": "<need>"
    },
    "name": "recommend"
  }
}

Input Schema

NameRequiredDescriptionDefault
liveNoOnly 1 is accepted, which is also the default: prefer endpoints with recent liveness evidence.
needYesThe work you need done, in plain words, e.g. "weather forecast for Berlin" or "translate text to German". 2–300 characters with at least two letters or digits.
viewNoResponse detail: compact (smallest, pick essentials and request template), evidence (adds ranking, liveness, delivery and payment evidence per pick) or legacy (default, original field layout).
chainNoOnly return providers that accept payment on this network, as a CAIP-2 id, e.g. eip155:8453 for Base.
limitNoMaximum number of picks, 1–5. Default 3.
max_price_usdNoHighest provider price per call in USD you accept. Separate from the 0.01 USDC recommendation fee; the provider's own quote at call time is authoritative.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.2
    • addedInput schema / properties / chain / description
      Added value: +"Only return providers that accept payment on this network, as a CAIP-2 id, e.g. eip155:8453 for Base."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of picks, 1–5. Default 3."
    • addedInput schema / properties / live / description
      Added value: +"Only 1 is accepted, which is also the default: prefer endpoints with recent liveness evidence."
    • changedInput schema / properties / max_price_usd / description
      Previous value: -"Maximum provider price; separate from the recommendation fee."New value: +"Highest provider price per call in USD you accept. Separate from the 0.01 USDC recommendation fee; the provider's own quote at call time is authoritative."
    • addedInput schema / properties / need / description
      Added value: +"The work you need done, in plain words, e.g. \"weather forecast for Berlin\" or \"translate text to German\". 2–300 characters with at least two letters or digits."
    • addedInput schema / properties / view / description
      Added value: +"Response detail: compact (smallest, pick essentials and request template), evidence (adds ranking, liveness, delivery and payment evidence per pick) or legacy (default, original field layout)."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the 0.01 USDC fee, the exact free-demo trigger strings, the env vars and one-paid-call-per-process cap, that calls are never retried, that errors and empty results are free, and the risk of data.picks being shorter than limit. This is exactly the kind of payment and failure-mode context annotations cannot convey.

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 purpose and sibling routing, then payment mechanics and parameter tips. Dense and mostly waste-free, though the free-demo/payment paragraph is long enough to slow scanning and could be tightened.

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

Completeness5/5

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

For a paid, open-world tool with no output schema, the description supplies the return shape ({data, payment_attempt_id, request_id}), when payment_attempt_id exists, and how it feeds receipt. An agent has everything needed to call it and interpret the response.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: write need as the task itself rather than a product name, use view=compact to save tokens, and that max_price_usd is separate from the 0.01 USDC recommendation fee. Minor gap in not explaining the live=1 constraint, which the schema already covers.

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 ('find which paid x402 API to call for a task') plus what the result contains, and explicitly distinguishes itself from the siblings inspect and receipt. An agent can route correctly without opening the 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?

Explicit when-to-use ('when you do not yet know which API to call'), explicit when-not with named alternatives (inspect for a known endpoint, receipt after paying), and guidance on how to phrase need and narrow results. Nothing is left to inference.

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

Deploy Server

Other Tools