Skip to main content
Glama

revoke_key

Revoke an API key immediately. Revoking the key this session authenticated with locks this MCP connection out.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
key_idYesKey id (uuid) from list_keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Without annotations, the description carries the full burden. It discloses key behaviors: immediate revocation and potential lockout of the current MCP connection. This provides sufficient transparency for a simple tool, though it could mention reversibility or permissions.

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?

The description is highly concise, using two sentences to convey the action, immediacy, and a critical edge case (locking the connection). No unnecessary words or repetition.

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 tool with no output schema, the description covers the essential action and a key behavioral consequence. It is complete enough for safe invocation, though it could mention the outcome when revoking a non-authenticated key.

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?

The schema already has 100% description coverage for the single parameter key_id, explaining it as a UUID from list_keys. The description does not add additional semantic meaning beyond what the schema provides, earning a baseline score of 3.

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 ('Revoke an API key') and the resource ('API key'), distinguishing it from sibling tools like create_key or list_keys. It also adds context about the immediate effect on the current session.

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?

The description implies when to use (need to revoke a key) and warns about the consequence of locking out the current session if the authenticated key is revoked. However, it does not explicitly mention when not to use or suggest alternatives like deletion.

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