Skip to main content
Glama

Quantum Atlas Stripe X402 Agent Payment Hub

List Delegated Subagent Keys

x402_list_delegate_keys
Read-onlyIdempotent

List delegated subagent policy records (sbd_* IDs governing sbk_* spend keys) with caps, allowlists, expiry, and live spend usage. Use this to audit subagents or check the 50-active-key limit; do not use for account state (x402_get_account) or statements (x402_export_statement). Parameters: status="active" requires non-revoked + unexpired ttl_hours; "expired" matches unrevoked keys past ttl_hours; supply spend_key/header (mismatch -> HTTP 400; delegate sees only itself). Behavior: zero charge; unpaginated newest-first list (<= 50 active plus history), HTTP 401 invalid/revoked key, 120 req/min/IP.

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_list_delegate_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoOptional lifecycle status filter: "all" (default, every key), "active" (non-revoked and unexpired), "revoked", or "expired".
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 delegated keys listing succeeded.
key_roleNoAuthority tier of the caller key.
delegatesNoDelegated subagent key records with policy caps and real-time spend usage.
account_idNoAccount identifier owning the delegated keys.
total_countNoTotal delegated keys recorded on the account across all statuses.
active_countNoCount of currently active (non-revoked, unexpired) delegated keys.
returned_countNoNumber of delegated keys returned after applying any status filter.

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?

Annotations already declare it read-only, idempotent, and non-destructive, and the description adds substantial context on top: zero charge, unpaginated newest-first ordering, capacity ceiling (~50 active plus history), HTTP 401 for invalid/revoked keys, 120 req/min/IP throttling, and 400 on key/header mismatch. These are operational traits the annotations cannot express.

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?

Purpose and exclusions are front-loaded, then labeled 'Parameters:' and 'Behavior:' blocks keep the dense operational detail scannable. Some clauses are compressed to the point of being cryptic (e.g. 'non-revoked + unexpired ttl_hours'), costing a little clarity, but nothing is redundant.

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?

For a two-optional-parameter list tool with an output schema already documenting return values, the description covers everything an agent needs: scope, filtering semantics, auth fallback, error codes, rate limits, and list ordering. No meaningful gap remains.

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?

Although schema coverage is 100%, the description adds non-obvious semantics the schema does not: that 'active' requires both non-revoked and unexpired ttl_hours, that 'expired' matches unrevoked keys past ttl_hours, and that spend_key may come from the x-atlas-spend-key header with a delegate restricted to its own records. This materially changes how an agent would set the filter.

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 ('List delegated subagent policy records') and even explains the ID taxonomy (sbd_* governing sbk_* spend keys) plus the fields returned. It explicitly names what it is not for (x402_get_account, x402_export_statement), so an agent can distinguish it from siblings 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 positive triggers ('audit subagents or check the 50-active-key limit') and explicit exclusions naming the two sibling tools to use instead for account state and statements. This is the when-to-use / when-not-to-use / alternative pattern at full strength.

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