Skip to main content
Glama

revoke_api_key

Permanently revoke an API key so it immediately stops working. Use it to disable a compromised or unused key; revocation cannot be undone.

Instructions

Revoke an API key. WARNING: This is a destructive operation — the key will immediately stop working and cannot be restored.

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": {
      "keyId": "<keyId>"
    },
    "name": "revoke_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyIdYesID of the key to revoke (get from list_api_keys)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does so well for the core risk: it states the effect is immediate and cannot be undone. It stops short of covering idempotency (what happens if the key is already revoked), required permissions, or whether related resources are affected.

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?

Two short sentences with the operation front-loaded and the warning immediately after; nothing is wasted and no caveat is buried.

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?

For a single-parameter, non-idempotent-documented mutation tool with no output schema, the description covers the essential thing an agent needs before calling: this is irreversible and takes effect instantly. The remaining gaps are edge-case behavior on repeat calls and authorization requirements, which are minor for this complexity level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema already tells the agent that keyId comes from list_api_keys, so the description need not repeat it. The description adds no additional meaning about the key identifier format or how to obtain it, which is acceptable at this baseline.

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 opens with a precise verb+resource pair, "Revoke an API key," that an agent can immediately distinguish from the create_api_key and list_api_keys siblings. There is no ambiguity about what operation is performed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer you revoke keys you no longer want active, and the irreversibility warning nudges toward caution. However, the description never states when to prefer this over other lifecycle operations, nor does it mention prerequisites such as authorization scope or confirmation steps.

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