Skip to main content
Glama

Delete an API key

delete_api_key
DestructiveIdempotent

IRREVERSIBLE: Delete an API key

Deletes one of your API keys for good: it stops working at once and disappears from list_api_keys. Use revoke_api_key instead when the key should stay listed as revoked. Only keys made in the developer portal or with POST /developer/api-keys are deleted here; the access of a connected AI app ends with disconnect_ai_app. id comes from list_api_keys. 404 when no such key of yours exists.

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": "delete_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesid
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/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 does not need to re-assert danger; instead it adds genuinely new behavior: the key stops working immediately, disappears from `list_api_keys`, and a 404 is returned when no such key of yours exists. The irreversibility is front-loaded and the two-step confirmation flow lives in the schema, so nothing material is left implicit.

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?

The irreversible warning is front-loaded, then consequences, then sibling alternatives, then eligibility scope, then parameter provenance, then error behavior. Every sentence carries distinct information with no restatement of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive tool with full annotation coverage and no output schema, the definition covers consequences, alternatives, eligibility, argument provenance, and the 404 case. An agent has everything needed to call it correctly and safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the `confirm` parameter already carries a detailed echo-call protocol, so the schema does most of the work. The description still adds real provenance for `id` by telling the agent to source it from `list_api_keys`, which is meaning the schema does not convey.

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 and resource ("Delete an API key") and immediately narrows scope: permanent deletion of a developer-portal/`POST /developer/api-keys` key, not a revocation. It explicitly distinguishes itself from `revoke_api_key` and `disconnect_ai_app`, so an agent can route correctly without opening other schemas.

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

Usage Guidelines5/5

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

Gives explicit when-to-use and when-not-to-use: use this for permanent removal, use `revoke_api_key` when the key should remain listed as revoked, use `disconnect_ai_app` for connected AI app access. The only omission is that the alternative for listing is covered separately as a parameter source note.

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.