Skip to main content
Glama

quiry

Revoke API token

revoke_api_token

Revokes an API token. The token you are calling with cannot revoke itself.

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_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it supplies only the self-revocation restriction. It does not say whether revocation is immediate and irreversible, what happens to requests still using the token, what permissions are required, or whether an unknown/foreign token id errors or silently succeeds — all critical for a destructive, unannotated mutation.

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 purpose front-loaded and the constraint second; every clause carries information and there is no filler.

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

Completeness3/5

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

The self-revocation note is a genuinely useful and non-obvious edge case, adequate for the simplest possible signature (one id). It remains incomplete for a destructive, annotation-free tool because irreversibility, permission requirements, and discovery of the token id are unaddressed.

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

Parameters2/5

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

Schema description coverage is 0% and the single required parameter `id` is documented only by its UUID pattern, with the description adding no meaning. It never states that `id` identifies the target API token, nor points to list_api_tokens as the way to obtain a valid id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Revokes an API token') that an agent can act on immediately. It does not distinguish itself from the similarly named revoke_connected_app or revoke_oauth_client siblings, so the agent must infer the boundary from the noun 'API token'.

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

Usage Guidelines2/5

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

No when-to-use guidance and no alternatives named; the only guidance is a hard constraint ('cannot revoke itself'), which is a constraint rather than a selection rule. Nothing tells the agent how this differs from revoking connected apps or OAuth clients, or when revocation is preferable to other cleanup actions.

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