Skip to main content
Glama

Base Swap Simulator & Risk Gate

check_x402_endpoint

Pre-payment trust report on any x402 endpoint: parses its 402 challenge, validates Base network, USDC asset, payTo address and price. Unlimited deep checks via x402 at /api/x402-deep-check ($0.005 USDC).

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

Input Schema

NameRequiredDescriptionDefault
urlYesHTTPS URL of the x402 endpoint to verify

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It usefully reveals the cost model ($0.005 USDC) and that the check is non-destructive/pre-payment (it only parses the 402 challenge), but it does not say what a verdict looks like, whether failure is reported as an error or a result, or what happens with a non-Base or non-USDC endpoint.

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 dense sentences with the core action front-loaded and no filler. The second sentence, however, mixes a pricing/endpoint detail into a tool definition without clarifying its relationship to this tool, which slightly muddies an otherwise tight description.

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?

No output schema exists, so the description should ideally convey what the report returns; it names the four validated dimensions, which gives a reasonable preview of the verdict surface. It stops short of describing the result shape or error behavior, leaving a modest gap for an unannotated 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?

With a single parameter at 100% schema description coverage, the schema already explains 'HTTPS URL of the x402 endpoint to verify'. The description reinforces the target domain ('any x402 endpoint') but adds no format, path, or query-string detail beyond the schema, 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?

The description names a concrete verb set ('parses its 402 challenge, validates Base network, USDC asset, payTo address and price') against a concrete resource (an x402 endpoint). This is specific enough that an agent can tell it apart from the sibling tools (wallet check, bytecode audit, swap simulation) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'Pre-payment trust report' implies the timing of use (before paying an x402 endpoint), which is genuine guidance, but there is no explicit when-not, no prerequisites, and no named alternative tool. The trailing sentence about '/api/x402-deep-check' is ambiguous: it is unclear whether that is this same tool's paid tier, a different tool, or an optional follow-up call.

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