Skip to main content
Glama

Revoke agent key

key_revoke
DestructiveIdempotent

Revoke one key on your account by its id from key_list. That agent (or connector) is disconnected on its next call; every other key keeps working. Revoking your own key (current) disconnects you.

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": "key_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe key id, from the key list.
whyNoOptional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters.

Output Schema

NameRequiredDescriptionDefault
idYes
revokedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare destructive/idempotent/closed-world; the description adds the non-obvious mechanics: disconnection is deferred to the target's next call, and other keys are unaffected. It also flags the self-targeting case, which is the highest-risk mistake an agent could make here.

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 short sentences, each carrying distinct information: what it acts on, the blast radius, and the self-target hazard. The consequence is front-loaded after the action, with no redundant framing.

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?

With annotations covering the destructive profile and an output schema covering return values, the description's remaining job is consequence disclosure, which it does well. The only thin spot is permanence: it never says the revocation cannot be undone or that the key must be reissued, leaving irreversibility to be inferred from destructiveHint.

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 coverage is 100%, so each parameter, including the optional 'why' field's non-recording behavior and 300-character cap, is already documented in the schema. The description's 'by its id from key_list' restates rather than extends the 'id' schema text, so baseline 3 is appropriate.

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 leads with a specific verb and resource ('Revoke one key on your account') and bounds the scope to a single key, naming key_list as the id source. That distinguishes it immediately from the key_list sibling, which only enumerates keys.

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

Usage Guidelines4/5

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

It tells the agent where the id comes from ('from key_list') and warns about the self-revocation case, which is a real usage decision point. It does not explicitly state when not to revoke or name an alternative remediation path, so it falls short of a full when/when-not/alternatives statement.

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.