Skip to main content
Glama

Revoke a token

revoke_token
DestructiveIdempotent

Revoke one of the person's API tokens, and the tokens it made, at once. Only when the person asks for it in this conversation.

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": {
      "token_id": "<token_id>"
    },
    "name": "revoke_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
token_idYesIts tok_ id, from list_tokens.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is largely covered. The description's real contribution is the cascade behavior — collateral revocation of derived tokens — which is meaningful beyond the annotations. It does not say whether revocation is reversible or how partial failures of the cascade are handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no filler, and the cascade scope is front-loaded before the usage restriction. Slightly telegraphic but every clause carries information.

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 destructive mutation, the description plus annotations cover what is revoked, the blast radius, and the authorization condition; no output schema is needed to describe returns. Remaining gap is the absence of any note on reversibility or confirmation flow, which matters for an irreversible operation.

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?

Only one parameter, and the schema already documents it fully (tok_ id obtained from list_tokens) at 100% coverage. The description adds no format, resolution, or validation guidance for token_id, so baseline 3 applies.

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 names a specific verb (revoke) and resource (the person's API tokens) and adds the non-obvious scope that the tokens created by that token are revoked at once. That cascade detail separates it from sibling mutations like create_token and issue_token without needing the schema.

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 gives an explicit gating condition: act only when the person asks for revocation in this conversation, which is a real when-to-use constraint for a destructive operation. It stops short of naming alternatives (e.g. revoke_share for a different resource) or stating preconditions such as confirming the token id with the user.

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