Skip to main content
Glama

Which paid API should I call?

find_best_api
Read-only

Describe what you need ("web search", "weather forecast", "verify an email", "pdf to text", "people enrichment") and get the top 1-5 pay-per-call (x402) APIs to use, from an hourly index of Coinbase's x402 marketplace (~38,000 endpoints). Ranked by evidence that other agents keep paying for them: calls per paying wallet over 30 days (so one-off sampling bots count little), how recently each was paid, relevance and price vs. typical. Top candidates are checked live (still asking for payment, at the listed price). Each result: endpoint URL, method, price, network, why it ranks there, and flags (mostly one-time payers, above typical price, not called recently, did not answer). Read-only; never pays.

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": {
      "task": "<task>"
    },
    "name": "find_best_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesWhat you need the API for, in a few words, e.g. "web search", "transcribe audio", "company enrichment".
limitNoHow many APIs to return (default 3).
check_liveNoCheck the top candidates live (default true). False is faster.
max_price_usdNoOptional price cap per call in USD, e.g. 0.05.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnlyHint, destructiveHint=false), and the description adds real substance beyond them: the ranking signal (calls per paying wallet over 30 days, so one-off bots count little), recency, price-vs-typical comparison, live verification of top candidates, and what each flag means. "Read-only; never pays" confirms the annotation rather than merely restating it.

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 core promise, then methodology, then the return shape, with no filler sentences. The dense parenthetical example list and flags enumeration are slightly heavy but each clause carries information an agent would otherwise have to guess.

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?

No output schema exists, and the description fully compensates by enumerating the returned fields (endpoint URL, method, price, network, ranking rationale, flags) plus the specific flag conditions. Nothing an agent needs to call this correctly or interpret the response is 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 coverage is 100%, so the baseline is 3, but the description adds meaning: it clarifies that results are capped at 1-5, that price is compared against typical rather than absolute, and that the live check verifies the endpoint is still asking for payment at the listed price. The task-string semantics are also illustrated with domain examples the schema only partly matches.

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: given a described need, return the top 1-5 pay-per-call x402 APIs from a named marketplace index. The scope (x402 marketplace, ~38,000 endpoints, per-call pricing) cleanly separates it from generic siblings like read_url or x402_market_report.

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?

Gives concrete trigger context with worked examples of the task string ("web search", "verify an email", "pdf to text") and notes max_price_usd and check_live=false tradeoffs, so an agent knows when this is the right call. It does not name a sibling to prefer instead (e.g. check_before_paying for the payment step), so it stops short of explicit alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources