Skip to main content
Glama

agent_key_revoke

Destructive

Stops the key immediately. In-flight requests using it fail. Revocation cannot be undone; mint a new key instead.

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": {
      "keyId": "<keyId>"
    },
    "name": "agent_key_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyIdYes
confirmNoRequired for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would.
dry_runNoReturn the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before.
idempotency_keyNoReplaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Adds real behavior beyond the annotations: in-flight requests fail immediately and revocation is irreversible, which the destructiveHint alone does not convey. However, it stays silent on what happens to resources or data owned by the key, and on the confirm/idempotency semantics that the annotations and schema treat differently (idempotentHint=false alongside an idempotency_key parameter).

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?

Three short sentences, front-loaded with the immediate effect, then the side effect, then the irreversibility and alternative. No wasted wording.

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?

Covers the essential danger of an irreversible destructive call, but with no output schema and an undocumented required keyId, an agent still lacks guidance on identifying the target key and on how the confirm/dry_run flow interacts with a destructive revoke.

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 75%, near the high-coverage baseline, and keyId itself carries no schema description. The description never explains what keyId identifies or which key forms are accepted, so it adds little beyond the schema.

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 action and effect: it stops the key immediately, matching the title's 'Revoke an agent credential'. An agent can tell this is the destructive counterpart to agent_key_create/list, though the description says 'the key' rather than naming the agent credential resource.

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 a clear alternative path: 'mint a new key instead', pointing to key creation when revocation is undesirable. It does not explicitly say when revocation is the right choice (e.g. compromised key rotation), but the irreversibility note effectively frames the decision.

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