Skip to main content
Glama

Validate an x402 endpoint now

check_x402_endpoint
Destructive

Send an unpaid request and validate the endpoint's HTTP 402 challenge, accepted networks, scheme, amount, and recipient. The target probe does not attach payment. Costs $0.001 USDC per call via x402 (Base) — no API key, no account. Calling without payment returns 402 with the payment requirements. Free alternative: GET https://longwatch.dev/demo for a free NVDA Form 4 sample, or POST https://longwatch.dev/try for a 24h watch — no wallet needed.

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTP(S) payment endpoint URL, e.g. https://example.com/paid-api
bodyNox402: optional JSON object for POST/PUT/PATCH/DELETE, e.g. {"type":"edgar","ticker":"NVDA"}; omit for GET/HEAD
methodNox402: HTTP method, default GET. POST/PUT/PATCH/DELETE can modify the target even without payment; use only on a target you are authorized to probe
expected_schemeNox402: optional expected scheme, e.g. exact
expected_networkNox402: optional expected CAIP-2 network, e.g. eip155:8453
expected_amount_atomicNox402: optional expected token amount in atomic units, e.g. "1000" for 0.001 USDC

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / body / description
      Added value: +"x402: optional JSON object for POST/PUT/PATCH/DELETE, e.g. {\"type\":\"edgar\",\"ticker\":\"NVDA\"}; omit for GET/HEAD"
    • addedInput schema / properties / expected_amount_atomic / description
      Added value: +"x402: optional expected token amount in atomic units, e.g. \"1000\" for 0.001 USDC"
    • addedInput schema / properties / expected_network / description
      Added value: +"x402: optional expected CAIP-2 network, e.g. eip155:8453"
    • addedInput schema / properties / expected_scheme / description
      Added value: +"x402: optional expected scheme, e.g. exact"
    • addedInput schema / properties / method / description
      Added value: +"x402: HTTP method, default GET. POST/PUT/PATCH/DELETE can modify the target even without payment; use only on a target you are authorized to probe"
    • addedInput schema / properties / url / description
      Added value: +"Public HTTP(S) payment endpoint URL, e.g. https://example.com/paid-api"
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Adds real context beyond the annotations: cost of $0.001 USDC per call on Base, no auth requirements, and the expected 402 response when unpaid. However, the annotations declare destructiveHint=true and readOnlyHint=false, and the description itself never warns that probing can alter the target -- that caveat lives only in the method parameter's schema text. The description therefore leaves the most safety-critical behavior undisclosed.

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?

Two sentences, front-loaded with the core action and followed by payment mechanics. The trailing free-alternative sentence is somewhat promotional and drifts into unrelated NVDA/Form 4 detail, slightly diluting an otherwise tight definition.

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

Completeness3/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 should explain what the tool returns; it only states that an unpaid call returns a 402 from the target, not what the tool itself reports back to the caller (validation result, mismatches, recipient). With six parameters and a nested object, that is a meaningful gap.

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 all six parameters are already documented in the schema, including the destructive POST/PUT/PATCH warning and the atomic-units example. The description mentions networks, scheme, amount and recipient but adds no syntax or format detail beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Send an unpaid request and validate the endpoint's HTTP 402 challenge, accepted networks, scheme, amount, and recipient.' That is far more precise than the tautological title. It never names the sibling watch_x402_endpoint, so an agent must infer the boundary between validating once and creating a watch.

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 clear conditions: no payment is attached, no API key or account is needed, and calling without payment yields a 402 with the payment requirements. It also offers a free alternative path. It does not say when to prefer this over watch_x402_endpoint, which is the most relevant sibling.

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