Skip to main content
Glama

Quantum Atlas Stripe X402 Agent Payment Hub

Account Balance

x402_get_account
Read-onlyIdempotent

Check your live USD balance, pause status, open Stripe checkouts, pending approvals, and recent calls. Use this for a full account overview; do not use to filter sub-keys alone (x402_list_delegate_keys), download billing statements (x402_export_statement), or check tool prices (x402_quote_plan). Parameters: pass spend_key or the x-atlas-spend-key header; main keys see the full account while sub-keys see their own limits. Behavior: free to call; main key checks also refresh any open Stripe checkouts so new top-ups appear right away.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_get_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 the account snapshot succeeded.
frozenNoTrue when the emergency freeze kill switch is currently halting all spends.
key_roleNoAuthority tier of the supplied spend key.
account_idNoAccount identifier (format: sbc_<24 hex chars>).
balance_usdNoAvailable prepaid USD balance (e.g. "24.95").
delegates_activeNoCount of non-revoked delegated subagent keys.
pending_approvalsNoCount of pending single-use escalation tickets awaiting operator decision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, idempotent, non-destructive), it discloses that the call is free and that main-key checks refresh open Stripe checkouts so new top-ups appear immediately — genuine side-effect context an agent would not otherwise know. That refresh is a mild tension with readOnlyHint=true, but it is a bounded internal refresh of existing checkout state rather than a user-facing mutation, so it reads as useful disclosure rather than a contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three front-loaded sentences plus labeled 'Parameters:' and 'Behavior:' lines, with zero filler. The exclusions and the side-effect note are each doing distinct work, so nothing could be cut without losing routing or behavioral information.

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 restated, and the one optional parameter is fully covered in both schema and prose. For a read-only overview tool with a single parameter, the definition supplies everything needed to select and invoke it correctly.

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; the description earns above that by explaining the header alternative ('x-atlas-spend-key') and, more importantly, the semantic split that main keys see the full account while sub-keys see only their own limits. That visibility scoping is not derivable from the schema alone.

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 gives a specific verb ('Check') and enumerates exactly what is returned: USD balance, pause status, open Stripe checkouts, pending approvals, and recent calls. It explicitly distinguishes itself from x402_list_delegate_keys, x402_export_statement, and x402_quote_plan, so an agent can pick it without opening any sibling 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?

It states the correct use case ('full account overview') and three explicit when-not cases with the named alternative for each. The only narrow gap is that it does not say whether pending approvals should instead be actioned via x402_decide_approval, but the routing guidance given is already explicit.

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