Skip to main content
Glama

x402 API finder: ranked paid endpoints for a task, with demand and quality flags

x402_api_recommend
Read-onlyIdempotent

Use when an agent must pick a paid x402 API for a task. Input: q (task in plain words or keywords), optional max_price (USD), network (base, solana or CAIP-2), limit (1-20). Output: JSON ranked endpoints: resource URL, method, description, price, networks, seller, 30-day payers and calls (Bazaar), seller buyers (x402scan), wash/quality flags, score, index as_of. Same rules for every seller. Use instead: x402_preflight for checking one endpoint. Example: ?q=base+token+honeypot+check&max_price=0.02 Price: $0.009 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": {
      "q": "<q>"
    },
    "name": "x402_api_recommend"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesWhat the API should do, in plain words or keywords (e.g. 'korean apartment prices', 'convert pdf to markdown'). Text only: never fetched as a URL
limitNoNumber of results (default 8)
networkNoOnly endpoints that accept this network: base, solana, polygon, arbitrum, optimism, ethereum, avalanche, worldchain, monad, or a CAIP-2 id (eip155:8453)
max_priceNoOnly endpoints priced at or below this many USD per call
include_flaggedNofalse drops routes flagged scanner_like or uniform_payers (suspected probes / wash); default true (flagged routes are kept but ranked lower)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, openWorld, non-destructive), and the description adds real context beyond them: the tool's own cost ($0.009 per call, USDC on listed chains), that ranking rules are applied uniformly across sellers, and that flagged routes are retained but ranked lower. It does not discuss rate limits or failure modes, keeping it short of 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the use condition, then inputs, outputs, alternative, example, and pricing — a logical order with no filler sentences. It is dense and abbreviation-heavy (Bazaar, x402scan, index as_of), which slightly hurts scannability but every clause carries information.

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 5-parameter read-only search tool with no output schema, the description enumerates the returned fields (URL, method, price, networks, seller, payer/call counts, flags, score) and discloses the tool's own pay-per-call cost. An agent has everything needed to call it and interpret results.

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 parameters are already documented, but the description adds a concrete query example ('?q=base+token+honeypot+check&max_price=0.02') that shows how q and max_price combine in practice. It omits include_flagged, which the schema handles with its own detailed description.

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+resource: find/rank paid x402 API endpoints for a given task, returning ranked results with demand and quality signals. It explicitly distinguishes itself from x402_preflight ('checking one endpoint'), so an agent can choose between them without opening either 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?

It states the triggering condition ('Use when an agent must pick a paid x402 API for a task') and names the alternative with the condition that selects it ('Use instead: x402_preflight for checking one endpoint'). Filtering behavior via max_price/network/limit is also framed as narrowing selection, leaving little to inference.

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