Skip to main content
Glama

Revoke a model key

revoke_key
DestructiveIdempotent

Revoke a model key

Revokes one of the account's own model keys. It stops working at once. A key that is already revoked, belongs to a customer or does not exist answers 404.

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": {
      "id": "<id>"
    },
    "name": "revoke_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe key id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructive and idempotent, but the description adds real value by stating the key "stops working at once" and by enumerating the 404 outcomes for already-revoked, customer-owned, and missing keys. That last detail meaningfully qualifies the idempotentHint by telling the agent a repeat call errors rather than silently succeeding.

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 effect, then the constraints. The opening line duplicates the title verbatim, which is minor waste, but nothing else is padded.

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 single-parameter destructive tool with full annotation coverage and no output schema, the description covers effect, immediacy, and all failure modes an agent is likely to hit. Only the successful response shape is unstated, a small gap given there is no output schema to rely on.

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?

Only one parameter (id) exists and the schema already documents it fully at 100% coverage as "The key id." The description adds no format, sourcing, or ambiguity guidance beyond the schema, so the baseline of 3 applies.

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?

The description states a specific verb and resource (revoke a model key) and narrows the scope to "one of the account's own model keys," implicitly separating it from customer-owned keys. It does not name the sibling tool that handles customer keys, so the differentiation is inferential rather than explicit.

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?

It lists the conditions where this tool is not the right path (already revoked, customer-owned key, nonexistent key all return 404), which hints that customer keys need a different endpoint. However, it never explicitly says when to use this versus revoke_customer_key or bulk alternatives, leaving the routing to inference.

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