Skip to main content
Glama

revoke_scoped_key

DestructiveIdempotent

Permanently revoke an Agent key by ID; revocation cannot be undone, and the key stops authenticating within about a minute. Requires an Organization key.

Instructions

Revoke an Agent key by ID. Revocation is permanent (cannot be un-revoked); the key stops authenticating within about a minute. Requires an Organization key.

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": {
      "key_id": "<key_id>"
    },
    "name": "revoke_scoped_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
key_idYesID of the scoped key to revoke

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.8.4
    • addedInput schema / properties / key_id / maxLength
      Added value: +128
    • addedInput schema / properties / key_id / minLength
      Added value: +1
    • addedInput schema / properties / key_id / pattern
      Added value: +"^[A-Za-z0-9_-]*$"
  2. First observedv1.2.5

TDQS

A3.8/5.0
Behavior4/5

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

Goes meaningfully beyond annotations: annotations only flag destructiveHint/idempotentHint, while the description spells out that revocation is irreversible and that propagation takes about a minute, which directly affects retry and verification logic. It omits one material effect for a revoke operation — what happens to resources or agents that were created with or bound to that key.

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?

Three short sentences, front-loaded with the action and then the consequence, timing, and prerequisite. No filler and nothing repeated from the schema.

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 one-parameter destructive tool with full annotation coverage, the description supplies the risk profile, propagation delay, and auth requirement an agent needs to act safely. The remaining gap is the absence of any return-value indication, since no output schema exists to cover it.

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 there is a single required key_id with its own description, so the schema carries the semantics. The description only restates "by ID" and adds nothing about format, lookup failures, or whether an already-revoked key raises an error (relevant given idempotentHint=true).

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 verb and resource ("Revoke an Agent key by ID"), which is unambiguous against create_scoped_key and list_scoped_keys without needing their schemas. Minor terminology drift: the description says "Agent key" while the title and schema say "scoped key", forcing the agent to assume these are the same resource.

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?

Usage is implied rather than stated: the agent can infer this is for deactivating an existing key, and "Requires an Organization key" plus "cannot be un-revoked" supply the relevant precondition and caution. There is no explicit when-not guidance or pointer to any alternative action (e.g., rotating vs. revoking), and no note on what to do if the key_id is unknown.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.