Skip to main content
Glama

Agent Data Tools: Company, compliance and checks

x402 endpoint check: price, payee, terms

x402_check
Read-only

Check an x402 seller before you pay it: decode any public endpoint's 402 payment requirements without paying (v1 body or v2 header) into USD price for native USDC, network, asset, recipient, scheme and timeout, plus a listing-quality score for https resource URL, atomic amount, facilitator minimum, description, Bazaar metadata and output schema. Never signs. Use before buying from an unfamiliar seller or to audit your own x402 listing. Example: url=https://agent-data-tools.revmesh2074.workers.dev/btc-fees. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "url": "<url>"
    },
    "name": "x402_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute public https URL of the paid endpoint, with any query it needs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the readOnlyHint/destructiveHint annotations: 'Never signs', 'without paying', 'Reads or computes only and changes nothing' clarifies the safety envelope, while 'each call is charged, so repeats are not free' explains the non-idempotentHint=true annotation in operational terms. It also discloses which protocol versions are handled (v1 body or v2 header), which no structured field conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The core action is front-loaded, but it reads as one dense run-on paragraph blending decoded fields, listing-score sub-criteria, safety claims, and the tool's own pricing ('$0.01/call ... first 10 free; failed calls free'). The cost sentence does earn its place for an agent budget, yet the middle enumeration could be tightened or bulleted without losing information.

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?

With no output schema, the description carries the return-value burden and does so by listing every decoded field plus the quality-score inputs. Missing only the response shape (field names/JSON structure) and failure behavior for a non-402 or unreachable URL, which would be useful for a single-parameter tool that can hit arbitrary endpoints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for the single required parameter, and the schema already says 'Absolute public https URL of the paid endpoint, with any query it needs'. The description's example URL adds a concrete illustration, but does not add constraints on format, normalization, or what happens with a malformed URL — so the baseline of 3 applies.

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 ('Check an x402 seller', 'decode any public endpoint's 402 payment requirements without paying') and enumerates exactly what is produced: USD price, network, asset, recipient, scheme, timeout plus a listing-quality score. That is clearly distinct from sibling payee/counterparty checks because the object is the HTTP-402 challenge itself, not the payee's reputation.

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?

'Use before buying from an unfamiliar seller or to audit your own x402 listing' gives two concrete trigger scenarios, and the price/cost note tells the agent when a repeat call is worth it. It stops short of naming a specific alternative (e.g. check_payee) or an explicit when-not-to-use, so it is strong context rather than full routing guidance.

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