Skip to main content
Glama

ping_x402_before_pay

BEFORE YOU PAY an x402 402: get the paid URL to ping live vs dead/ghost. One cent. Use when holding Payment-Required, before sending USDC to a payTo. Ghost x402, is this endpoint live, verify before pay.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe x402 resource URL you are about to pay
payToNoOptional 0x payTo from the 402

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It usefully discloses the cost ('One cent'), which is real value the schema does not carry, and implies a non-destructive liveness probe. However, it says nothing about rate limits, auth requirements, or what a failed/dead result implies for proceeding with payment.

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 'BEFORE YOU PAY' front-loading is effective, but the body is comma-spliced and keyword-stuffed, repeating the same before-you-pay idea three times ('Ghost x402, is this endpoint live, verify before pay'). It is short in word count yet wasteful, since the repetition adds no new information.

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?

With no annotations and no output schema, the description should ideally explain how to interpret the result (what 'live' vs 'ghost' means for the caller and what happens next). It hints at this but leaves the return semantics and the recommended action implicit, which is only marginally adequate for a pre-payment gate tool.

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 both parameters (url, payTo) are already documented, and the baseline is 3. The description loosely restates them ('the paid URL you are about to pay', 'payTo') without adding format, validation, or usage nuance 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 description states a recognizable verb+resource: ping an x402 paid URL to determine whether the endpoint is live vs dead/ghost before payment. It is distinguishable from the before_pay siblings by being specifically about liveness of an x402 resource. The sentence is grammatically fragmented ('get the paid URL to ping live vs dead/ghost'), which keeps it short of a clean 5.

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 a concrete trigger: 'Use when holding Payment-Required, before sending USDC to a payTo.' That is clear timing context and matches the schema's 'url you are about to pay'. It does not name or exclude any alternative sibling (e.g., x402_pay_clearance, listing_check_before_pay), so it stops short of a 5.

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