Skip to main content
Glama

Quantum Atlas Stripe X402 Agent Payment Hub

Preview Capability in Sandbox

x402_preview_capability
Read-onlyIdempotent

Dry-run any priced HTTP 402 capability against deterministic sandbox fixtures with live production pricing. Use this to test schemas at zero cost before funding; do not use for live data (x402_execute_capability) or multi-item quotes (x402_quote_plan). Parameters: capability_id accepts tool slug, "METHOD /path", or "/path"; omitting arguments injects curated defaults (used_example_defaults=true), whereas supplying any arguments object runs strict production validators without fallback. Behavior: no auth, zero charge, zero GPU compute; returns sandbox=true fixture, HTTP 422 invalid args, HTTP 404 unknown capability, 120 req/min/IP.

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": {
      "capability_id": "<capability_id>"
    },
    "name": "x402_preview_capability"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsNoOptional JSON arguments matching the capability input_schema. Omit to auto-fill valid example defaults; pass custom fields to verify 422 validation.
capability_idYesPriced capability_id or route key from x402_list_capabilities to dry-run (e.g. "reality_harbor_state", "kb_search", or "POST /switchboard/chunk").

Output Schema

NameRequiredDescriptionDefault
okYesTrue when the sandbox dry-run succeeded.
resultNoDeterministic sandbox response fixture matching the production contract.
schemaNoSandbox preview contract (atlas.x402.sandbox_preview.v1).
chargedNoAlways false because sandbox previews never debit funds.
sandboxNoAlways true indicating deterministic fixture output rather than live production data.
production_pricingNoLive production pricing for this capability when executed with a funded spend key.
used_example_defaultsNoTrue when example default arguments were auto-filled.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations: no auth, zero charge, zero GPU compute, a sandbox=true fixture marker, and concrete failure codes (HTTP 422 invalid args, HTTP 404 unknown capability) plus a rate limit of 120 req/min/IP. It also discloses the key behavioral fork that omitting arguments injects curated defaults (used_example_defaults=true) while supplying arguments triggers strict production validators with no fallback. Nothing here contradicts the readOnly/idempotent/closed-world annotations.

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?

Front-loaded with purpose and exclusions, then structurally split into 'Parameters:' and 'Behavior:' blocks, with no filler sentences. The Behavior block is telegraphic ('HTTP 422 invalid args, HTTP 404 unknown capability, 120 req/min/IP'), which is efficient but slightly terser than ideal for an agent parsing error handling.

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?

Covers the two things an agent needs before calling: cost/safety (free, no auth, sandboxed) and the argument-defaults fork that changes validation behavior. An output schema exists, so the description needn't spell out return values, and the fixture marker plus error codes cover the rest.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds meaning the schema lacks: capability_id accepts a tool slug, a 'METHOD /path' route key, or a bare '/path'. It also explains the consequence of omitting versus supplying the arguments object, which the schema only hints at.

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?

States a specific verb and resource ('Dry-run any priced HTTP 402 capability') plus the execution context ('deterministic sandbox fixtures with live production pricing'). It immediately distinguishes itself from the two named siblings, so an agent can route between them without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit when ('test schemas at zero cost before funding') and explicit when-not, naming both alternatives and their domains: x402_execute_capability for live data, x402_quote_plan for multi-item quotes. Exclusions are stated, not inferred.

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