revoke_api_key
Revoke an API key you own. Idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_id | Yes | The API key to act on, identified by its id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Revoke an API key you own. Idempotent.
| Name | Required | Description | Default |
|---|---|---|---|
| key_id | Yes | The API key to act on, identified by its id. |
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already provide idempotentHint=true and destructiveHint=false. The description only repeats 'Idempotent' and adds 'you own' for authorization, but no additional behavioral traits beyond annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with verb, no wasted words. Highly concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present and simple action, the description covers ownership and idempotency. Could mention effect on existing tokens, but adequate for the tool's simplicity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and the parameter description is clear. The tool description does not add extra meaning to the parameter beyond schema, meeting baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Revoke') and the resource ('API key you own'), distinguishing it from sibling tools like mint_api_key and list_api_keys. It is specific and not a tautology.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives (e.g., revoke_image_generator, delete_*). The idempotency note is useful but does not provide context on selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.