Skip to main content
Glama

revoke_api_key

DestructiveIdempotent

Permanently disable an API key and every key it created, recursively. All cascading keys stop authenticating at once — this cannot be undone, so check parent keys first.

Instructions

Requires an API key with the admin scope or higher. Permanently revoke an API key AND every key it created, recursively: the keys that key made, the keys those keys made, all the way down. All of them stop authenticating immediately. Revoking cascades because a key that can mint keys would otherwise outlive its own revocation. Check list_api_keys first — created_by_key_id shows which keys hang off this one — because this cannot be undone and may revoke more than one credential.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_key_idYesUUID of the key to revoke. Get it from list_api_keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already indicate destructiveHint=true and idempotentHint=true, but the description goes beyond by explaining the recursive revocation and its immediate effect on authentication. It also highlights the irreversibility and potential to revoke multiple credentials, providing critical context that annotations alone do not convey.

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?

The description is concise and front-loaded with the most critical information (requirements and irreversible action). It packs substantial detail into a few sentences without unnecessary fluff. Slightly verbose in the middle explaining the cascade rationale, but it earns its place by aiding agent judgment.

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?

Given the tool's complexity (destructive, cascading, irreversible), the description is complete. It covers prerequisites (admin scope), preconditions (check list_api_keys), behavioral outcomes (immediate revocation of all descendant keys), and the irreversibility. The absence of an output schema is acceptable because the tool's effect is what matters, not the response.

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?

The schema covers the single parameter with a description and a pointer to list_api_keys, but the description reinforces the meaning by emphasizing the cascade and the need to verify the key's children. Since schema coverage is 100%, the description adds value by clarifying the consequences of using the parameter, though the schema already does most of the work.

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 clearly states the action ('Permanently revoke an API key') and the resource (an API key), and it highlights the cascading effect that distinguishes it from a simple revocation. It is specific and unambiguous, differentiating it from sibling tools like create_api_key and list_api_keys.

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?

The description provides explicit guidance: it requires admin scope, advises checking list_api_keys first to understand the cascade, and warns that the action is irreversible. It also explains the rationale for cascading, helping the agent understand when it's appropriate to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.