Skip to main content
Glama

Revoke agent

revoke_agent
DestructiveIdempotent

Revoke an agent and all of its keys. Requires scope 'agents:manage'.

Input Schema

NameRequiredDescriptionDefault
agent_idYes
idempotency_keyNoOptional. Same key + same arguments within 24 h returns the original result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's extra job is to add context — and it does: it discloses the cascade effect (all keys are revoked too) and the auth scope required. It stops short of stating that revocation is permanent or what happens to existing sessions.

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, front-loaded with the action and its blast radius, followed by the permission requirement. Nothing redundant.

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 low-complexity two-parameter destructive mutation with no output schema, the description covers the action, the cascade, and the permission. Only permanence/irreversibility and failure behavior are unstated.

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 50%: idempotency_key is well documented in the schema, while agent_id carries only a format hint. The description implies the target is an agent but adds no detail on where to obtain the ID or what an invalid ID does, so it only partly compensates for the gap.

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 ('Revoke') and resource ('an agent') and adds scope ('and all of its keys'), which no sibling tool does. It is trivially distinguishable from create_agent and list_agents.

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

Usage Guidelines3/5

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

The description names the required scope 'agents:manage', which is a useful precondition for invocation. However, it gives no guidance on when to prefer this over alternatives, no warning that revocation is irreversible, and no note that the identifier typically comes from list_agents.

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