Skip to main content
Glama

Revoke an API key

revoke_api_key
Destructive

Revoke an API key for good: it stops working on its next call. Your own key, or (as the owner) a member's key made for this organization. Revoking the key this connection uses ends this connection. Keys can only be created in the app, never from here. The id is from list_api_keys.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
idYes
organizationIdNoWhich organization to act in: an id from list_organizations. Leave out for this connection's default organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructive=true and readOnly=false, so the lower bar applies, yet the description still adds non-obvious behavior: revocation is permanent ('for good'), takes effect on the very next call, and revoking the calling connection's key terminates this connection itself. It does not discuss the idempotentHint=false implication (repeat calls on an already-revoked key).

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?

Four short sentences, front-loaded with the effect and consequence, then eligibility, then the self-lockout warning, then the parameter provenance. No filler sentences; each carries a distinct fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, but the description implies the outcome (key stops working) and covers the side-effect scope, permissions, and parameter source for a two-parameter destructive tool with annotations. The only gap is what a successful call returns and whether repeat revocation returns an error.

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 50%: organizationId is documented in the schema as the default-organization override, and the description compensates for the undocumented id by giving its source ('from list_api_keys'). It adds no detail on id format or what happens if organizationId is supplied for a key outside that organization.

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 plus the effect: 'Revoke an API key for good: it stops working on its next call.' It also positions itself against nearest sibling by noting the id comes from list_api_keys, so an agent can separate it from read/create operations without opening another 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?

Explicitly scopes who may be revoked (your own key, or a member's key when acting as owner) and names the prerequisite for the required parameter ('The id is from list_api_keys'). It also rules out the adjacent create case ('Keys can only be created in the app, never from here'), which is genuine when-not guidance.

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