Skip to main content
Glama

Watch an x402 endpoint

watch_x402_endpoint
Destructive

Monitor an x402 endpoint for downtime and changes to its payment challenge, price, network, scheme, or recipient. Target probes do not attach payment. Includes 7 days of polling. Costs $0.005 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
webhookNooptional HTTPS endpoint for signed push alerts; polling still works
expected_schemeNox402: optional expected scheme, e.g. exact
idempotency_keyNounique retry key; the same key and input return the original watch
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. Changed7 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"
    • addedInput schema / properties / webhook / properties / url / description
      Added value: +"Public HTTPS webhook URL, e.g. https://example.com/alerts"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

With annotations already declaring destructiveHint=true and openWorldHint=true, the description adds real value: the probe does not attach payment, the watch lasts 7 days, the exact price and payment rail, and that an unpaid call returns a 402 with requirements. The one gap is that it never mentions the destructive potential of POST/PUT/PATCH/DELETE probing or webhook alert delivery — those only live in the schema.

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?

The core behavior is front-loaded in the first two sentences, and pricing/auth follow logically. The closing free-alternative sentence is useful routing but crams two full URLs plus a sample description into one breath, making the tail heavier than it needs to be.

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?

For an 8-parameter, nested-object tool with no output schema, the description covers the essentials an agent needs to decide and call: what is monitored, duration, cost, payment mechanics, and unpaid-call behavior. It leaves alert delivery, cancellation, and the danger of mutating methods entirely to the schema and annotations.

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 every parameter is already documented, and the baseline is 3. The description's list of watchable attributes (price, network, scheme, recipient) loosely maps to the expected_scheme/expected_network/expected_amount_atomic params, but it adds no format or matching semantics beyond the schema.

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?

The first sentence states a specific verb and resource ('Monitor an x402 endpoint') and enumerates exactly what is tracked: downtime plus changes to payment challenge, price, network, scheme, and recipient. That scope plus '7 days of polling' implicitly separates it from the one-shot check_x402_endpoint sibling, but it never names that sibling explicitly.

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?

It gives concrete preconditions (no API key or account, $0.005 USDC per call on Base, 402 returned without payment) and routes wallet-less users to free alternatives (/demo and /try) rather than leaving them to guess. It does not say when to prefer this ongoing watch over the one-off check_x402_endpoint or check_now, so the sibling routing is only partial.

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