Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Revoke access token

revoke_token
Destructive

Revoke one API token by id, or end one sign-in connection by connection. Pass exactly one. A revoked token's later uses are refused. Ending a connection refuses its access token and renewal at once. Other connections keep working. Use list_tokens to find the token or connection to end.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "revoke_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoYour token's id, as `list_tokens` and the minting response give it. One of `id` and `connection` is required.
connectionNoThe connection to end, by the id `list_tokens` answers under `connections`, in place of `id`.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, and the description adds real blast-radius detail beyond that: a revoked token's later uses are refused, ending a connection kills both access and renewal at once, and other connections keep working. It does not state whether revocation is permanent or reversible, which is the remaining gap for a destructive operation.

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?

Five short sentences, front-loaded with the operation and its two modes, then effects, then the discovery pointer. No filler or repetition of the title.

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 two-parameter, no-output-schema, destructive tool, the description covers what to pass, what gets destroyed, and how to find the target. Only failure behavior (invalid id, already-revoked token) and reversibility are unaddressed.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds the mutual-exclusivity constraint ('Pass exactly one') that the schema itself does not encode (required is empty, no oneOf). It also clarifies the intended semantics of each mode, not just the parameter's type.

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?

States a specific verb and resource ('Revoke one API token by `id`, or end one sign-in connection by `connection`) and names the two distinct modes of operation. An agent can immediately tell this apart from list_tokens or sign_out_everywhere without consulting any other field.

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?

Gives explicit usage guidance: 'Pass exactly one' of the two modes, and 'Use `list_tokens` to find the token or connection to end' as the discovery path. It lacks an explicit when-not, but the 'exactly one' constraint and the pointer to the sibling cover the decision the agent must make.

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