Skip to main content
Glama

Quantum Atlas Stripe X402 Agent Payment Hub

Check Price & Balance

x402_quote_plan
Read-onlyIdempotent

Check exact prices for 1 to 25 paid tools and optionally verify account balance, pause state, and spending limits. Use this before running paid tools to confirm total cost; do not use to browse tools (x402_list_capabilities), preview samples (x402_preview_capability), or run tools (x402_execute_capability). Parameters: omit spend_key and x-atlas-spend-key header for rate-only math, or supply either (mismatch -> HTTP 400) to evaluate cumulative policy. Behavior: zero charge; validates all items together so any unknown tool or invalid input fails the whole quote; rejects invalid keys and temporarily unavailable billing ledger (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": {
      "items": "<items>"
    },
    "name": "x402_quote_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesOrdered list of 1 to 25 capability line items to price and policy-check together.
spend_keyNoStripe-funded master or delegated subagent spend key (format: sbk_<43+ chars>). Optional when the caller supplies the x-atlas-spend-key HTTP header.

Output Schema

NameRequiredDescriptionDefault
okYesTrue when all items were quoted successfully.
chargedNoAlways false because quoting never debits funds.
total_usdNoFormatted total combined cost in USD (e.g. "0.40").
total_centsNoTotal combined cost in USD cents across all quoted items.
payment_assistantNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / capability_id / description
      Previous value: -"Capability identifier or route key from x402_list_capabilities (e.g. \"reality_harbor_state\", \"audio_visual_isolate\", \"POST /switchboard/chunk\", or \"/kb/search\")."New value: +"Capability identifier or route key from x402_list_capabilities (e.g. \"reality_harbor_state\", \"audio_visual_isolate\", \"POST /switchboard/chunk\", or \"/collab/think\")."
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing zero charge, all-or-nothing validation ('any unknown tool or invalid input fails the whole quote'), the HTTP 400 on key/header mismatch, and a 120 req/min/IP limit. The only gap is that the 400 mismatch case is stated tersely without saying which value wins when both are supplied.

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 the purpose and cost-confirmation use case, then selection exclusions, then parameter and behavior notes. The telegraphic 'Parameters:'/'Behavior:' fragments are efficient, though the header/key mismatch clause is compressed enough to require a second read.

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?

An output schema exists, so return values need not be described, and the annotations already cover the safety profile. What remains — cost model, atomic validation, auth modes, rate limit — is all present, which is sufficient for a two-parameter quoting tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine semantics: omitting spend_key and the header yields rate-only math, while supplying either triggers cumulative policy evaluation, and a mismatch errors. That explains the purpose of the optional parameter in a way the schema's 'Optional when the caller supplies the header' does not.

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 ('Check exact prices') plus a hard scope ('1 to 25 paid tools') and secondary effects (balance, pause state, spending limits). It also names the three siblings it is not, so an agent can route correctly 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 Guidelines5/5

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

Gives an explicit when ('Use this before running paid tools to confirm total cost') and an explicit when-not, naming the alternatives for browsing, previewing, and executing. Nothing about tool selection is left to inference.

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