Skip to main content
Glama

ScorpTech x402 Tools

X402 Probe

x402_probe
Read-onlyIdempotent

x402 preflight for AI agents: inspect any paid endpoint BEFORE paying. Fetches the unpaid 402, decodes PAYMENT-REQUIRED (v2 header or v1 body), normalises price to USD, lists networks/assets/payTo/feePayer, validates the offer and Bazaar discovery schema, checks PayAI and Coinbase CDP discovery listing, and returns an OK/RISKY/BROKEN verdict. Never pays the target. Returns JSON with: status, isX402, x402Version, verdict, cheapestUsd, accepts, discovery, issues. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/x402-probe

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

Input Schema

NameRequiredDescriptionDefault
urlYesx402 endpoint URL
bodyNooptional JSON body for POST probes (default {})
methodNoHTTP method (default GET)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish a safe read profile (readOnlyHint, idempotent, non-destructive, open world), and the description adds material context beyond them: it explicitly guarantees it never pays the target, explains that it inspects the unpaid 402 response, names the v2-header and v1-body decoding paths, lists the network/asset/payTo/feePayer fields it surfaces, and discloses per-call pricing. The OK/RISKY/BROKEN verdict scale is behavioural information an agent needs before trusting the output.

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 first sentence front-loads purpose and the return-field list is valuable given there is no output schema, so most content earns its place. The core sentence is a long comma-chained run-on that packs eight separate operations, which slightly hurts scannability. No filler sentences.

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?

With no output schema, the description compensates by enumerating the returned keys (status, isX402, x402Version, verdict, cheapestUsd, accepts, discovery, issues). It also covers cost, the non-payment guarantee, supported payment rails, and the equivalent HTTPS route. Nothing an agent needs in order to call this correctly or interpret the result is missing.

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%, including the enum for method and the default for body, so the schema carries parameter meaning on its own. The description adds nothing about parameter semantics — no note on when a POST body is appropriate or how HEAD probes are treated. Baseline 3 applies when the schema does the work.

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 opens with a specific verb and object ('x402 preflight … inspect any paid endpoint'), then enumerates the concrete steps: fetch the 402, decode PAYMENT-REQUIRED, normalise price, validate offer, check discovery. That is far more specific than the name alone. It does not name a sibling such as http_probe or state how it differs from a plain HTTP probe, so it falls short of full sibling differentiation.

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?

'BEFORE paying' and 'Never pays the target' give a clear triggering condition: use it as a pre-payment check on an x402 endpoint. The description also signals the tool's own cost ($0.005 USDC per successful call), which is relevant to deciding whether to call it. It stops short of any explicit when-not or an alternative to use instead.

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