Skip to main content
Glama

Revoca una clave de API

revoke_api_key
Destructive

Revoca una clave de API. Destructivo e inmediato: la clave deja de funcionar. Exige confirm=true.

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>",
      "confirm": "<confirm>"
    },
    "name": "revoke_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyIdYesId de la clave (campo `id` de `list_api_keys`).
confirmYesDebe ser `true`.
idempotency_keyNoOpcional. Un reintento con el mismo valor devuelve la misma respuesta sin repetir la escritura.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the bar is lower; the description still adds the concrete consequence — the key stops working immediately — which is the substance an agent needs before calling. It stops short of 5 because it never states explicitly that revocation cannot be undone or what happens to data already written with 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 what the tool does, then the destructive effect, then the precondition. No filler and no repetition of the title.

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 destructive, no-output-schema tool with full schema documentation and annotations, the description covers purpose, effect, and the confirm gate. It would be complete at 5 with a note on irreversibility and the failure mode when confirm is missing, but nothing critical is absent.

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 description coverage is 100%, so the schema already explains keyId, the confirm enum, and idempotency_key retry semantics. The description only restates the confirm=true requirement already enforced by the schema and adds nothing about keyId sourcing or the idempotency_key, so baseline 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?

States a specific verb+resource: 'Revoca una clave de API', which is unambiguously distinct from the create/list API key siblings. It does not explicitly name an alternative tool, so it stops short of the top mark, but no agent could confuse this with another operation.

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?

Conveys the context of use (revoking an existing key) and a hard precondition (confirm=true), but gives no when-not guidance, no mention of rotation workflows (e.g., create_api_key first), and does not name any alternative tool to use instead when revocation is the wrong action.

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