Skip to main content
Glama

Sipiteno agent pre-checks (x402)

Sipiteno x402 Pay Preflight

preflight
Read-onlyIdempotent

Check an x402 endpoint before your agent pays it. Reads the endpoint's unpaid 402 (never pays it), decodes v1/v2 challenges, confirms the asset is real USDC, gives the price in USD, payTo and network, and looks it up in the Coinbase x402 Bazaar for 30-day payers and calls. Returns allow, warn or block with reasons. $0.005 USDC on Base. Not charged if the URL cannot be reached. Paid tool: $0.005 USDC on Base via x402. Without payment it returns the x402 PaymentRequired (isError) - pay and retry with _meta["x402/payment"].

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": "preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe x402 endpoint URL to check (http or https, public host).
methodNoOptional: GET or POST. Default: GET, then an empty-JSON POST if GET answers 404/405.
max_usdNoOptional: your max price per call in USD; verdict is block above it. Default 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: states it reads the 402 and never pays, discloses the price ($0.005 USDC on Base), that it is not charged when the URL is unreachable, and the exact failure mode (isError with PaymentRequired) plus retry mechanics. That is the kind of cost, billing-exception and error-contract detail annotations cannot express. Nothing here contradicts readOnlyHint/openWorldHint/idempotentHint.

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 purpose and the 'never pays' safety fact, and most sentences carry real information. The cost is stated twice ('$0.005 USDC on Base.' and 'Paid tool: $0.005 USDC on Base via x402.'), which is the one clear redundancy.

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?

There is no output schema, so the description must carry the return contract, and it does: verdict values, the fields returned (price, payTo, network, Bazaar payers/calls), and the unpaid-error path. For a paid, network-touching tool this covers everything an agent needs to invoke it correctly.

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%, so url, method and max_usd are already documented, including the GET→empty-POST fallback on 404/405 and the default cap. The prose adds only the framing that max_usd drives the block verdict, which repeats the schema rather than extending it. Baseline 3 is correct.

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 endpoint before the agent pays it. It then enumerates exactly what is inspected (the unpaid 402, v1/v2 challenges, USDC asset authenticity, price in USD, payTo, network, Bazaar 30-day stats) and what it produces (allow/warn/block with reasons). This is clearly distinguishable from domain_trust, token_safety and the other siblings.

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?

Explicitly frames the trigger condition (before your agent pays an endpoint) and describes the payment prerequisite workflow: without payment it returns PaymentRequired and you pay and retry with _meta["x402/payment"]. No sibling tool is named as an alternative, but the domain is distinctive enough that confusion is unlikely.

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