Skip to main content
Glama

Quantum Atlas Stripe X402 Agent Payment Hub

Deactivate Sub-Agent Key

x402_revoke_delegate_key
DestructiveIdempotent

Permanently deactivate one sub-agent key by delegate_id, or all active sub-keys when revoke_all=true. Use this to retire an unused or compromised sub-key; do not use for a temporary account-wide pause (x402_set_account_freeze) or budget edits (x402_update_delegate_key). Parameters: pass delegate_id or revoke_all=true (revoke_all takes priority if both are set); supply your main spend_key or header (mismatch -> HTTP 400). Behavior: permanent — deactivated keys immediately return HTTP 401. Safe to retry; returns HTTP 403 for sub-keys and HTTP 404 if unknown.

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

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional audit-log reason recorded on swarm revocations when revoke_all=true (e.g. "key_rotated" or "compromised_worker").
spend_keyNoMaster Stripe account spend key (format: sbk_<43+ chars>). Delegated subagent keys are rejected with HTTP 403. Optional if supplied via the x-atlas-spend-key HTTP header.
revoke_allNoSet true to immediately deactivate every active sub-agent key on the account at once (omit delegate_id when true).
delegate_idNoUnique delegated subagent key identifier returned by x402_issue_delegate_key or x402_get_account (format: sbd_<16 hex chars>, e.g. sbd_1122334455667788).

Output Schema

NameRequiredDescriptionDefault
okYesTrue when revocation succeeded.
revokedNoTrue when a single delegated key was revoked.
revoked_countNoNumber of delegated keys revoked when revoke_all=true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / revoke_all / description
      Previous value: -"Set true to execute the emergency swarm kill switch revoking EVERY active delegated subagent key on the account (omit delegate_id when true)."New value: +"Set true to immediately deactivate every active sub-agent key on the account at once (omit delegate_id when true)."
  2. Changed1 schema field changed
    • changedInput schema / properties / reason / description
      Previous value: -"Optional audit-log reason for revocation (e.g. \"key_rotated\" or \"compromised_worker\")."New value: +"Optional audit-log reason recorded on swarm revocations when revoke_all=true (e.g. \"key_rotated\" or \"compromised_worker\")."
  3. Added

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered structurally; the description reinforces this with 'permanent', 'deactivated keys immediately return HTTP 401' and 'safe to retry'. It also discloses the auth requirement (spend_key or header, mismatch -> HTTP 400) and error surface (403 for sub-keys, 404 if unknown), which is genuine added context. It stops short of describing response shape, but an output schema exists, so the reliance on annotations is appropriate.

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 with 'Parameters:' and 'Behavior:' labels that let an agent scan to the relevant part quickly. Every clause carries operational information (priority rules, error codes, permanence) with no filler or restated title text.

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 destructive, mutually-exclusive-parameter mutation tool, the description covers purpose, selection rule, auth requirement, permanence, retry safety and the error surface. An output schema is supplied, so return values need not be explained here.

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 adding the interaction rule that revoke_all takes priority when both parameters are set, which the schema does not express. The auth-fallback semantics (header vs spend_key, mismatch -> HTTP 400) further clarify parameters beyond their field descriptions.

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 names a specific verb ('Permanently deactivate') and resource ('one sub-agent key by delegate_id, or all active sub-keys'), and explicitly distinguishes itself from sibling tools x402_set_account_freeze and x402_update_delegate_key. An agent can select this tool over its neighbors 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?

It gives explicit when-to-use ('retire an unused or compromised sub-key') and when-not-to-use guidance with named alternatives for the excluded cases (account-wide pause and budget edits). The revoke_all vs delegate_id selection rule is also spelled out, leaving nothing 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