Skip to main content
Glama

Revoke access

revoke_access
DestructiveIdempotent

Revoke one credential: pass exactly one of key_prefix (an API key prefix from whoami) or connection_id (an OAuth grant id from whoami).

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

Input Schema

NameRequiredDescriptionDefault
key_prefixNoThe key prefix shown by `whoami` (the key's first characters). Exactly one of `key_prefix`, `connection_id`.
connection_idNoThe grant id shown by `whoami`. Exactly one of `key_prefix`, `connection_id`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 known. The description adds useful framing (it removes a single credential identified via whoami) but says nothing about immediate effect, irreversibility, or whether the underlying app loses access — context that matters for a destructive call.

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?

A single sentence with the core action front-loaded, followed immediately by the selection rule and value sources. No redundant or filler wording; each clause carries required 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?

Crucially, the description supplies the exactly-one-of constraint that the JSON schema cannot express (both properties are nullable with no required fields), which is essential to calling this destructive tool correctly. Minor gap: no statement of what happens on success/failure or whether revocation can be undone, though no output schema exists to cover that.

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% and the schema already documents both fields, including the exactly-one-of constraint and the whoami provenance. The description restates the same mutual-exclusivity rule rather than adding new meaning, 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?

States a specific verb and a bounded resource: 'Revoke one credential.' The scope limitation ('one') plus the two identifier kinds make the operation unambiguous and clearly distinct from every sibling, none of which perform deletion of credentials.

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?

Tells the caller precisely how to invoke it: pass exactly one of key_prefix or connection_id, and where each value comes from (whoami). It lacks an explicit when-not clause (e.g. what to do instead if you want to rotate rather than revoke), but the invocation conditions are fully clear.

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.