Skip to main content
Glama

Delete Api Key

delete_api_key
Read-onlyIdempotent

Permanently revokes an API key so it stops working immediately; this action cannot be undone and requires an ADMIN key. Admin keys are deletable only in the dashboard.

Instructions

Permanently delete an API key: it stops working at once. This cannot be undone. ADMIN keys can be deleted only in the dashboard. Needs an ADMIN key. If key management is turned off on this server, nothing is deleted and the result gives the dashboard link instead.

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

Input Schema

NameRequiredDescriptionDefault
key_idYesThe key's numeric id (see list_api_keys)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A3.5/5.0
Behavior1/5

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

The description explicitly declares an irreversible destructive operation ('Permanently delete', 'This cannot be undone'), while annotations declare readOnlyHint=true and destructiveHint=false. The narrative behavior and the structured metadata directly conflict, which is the most consequential thing an agent can get wrong here.

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?

Four short sentences, front-loaded with the irreversibility and immediacy of the effect, then the authorization and edge-case conditions. No filler; each sentence carries a distinct operational fact.

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?

Covers auth requirements, irreversibility, and the key-management-disabled branch — the substantive gaps for a destructive tool. With an output schema present, the return-value description is unnecessary, and only the mismatch with the supplied annotations keeps this from being complete.

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% and the single key_id parameter is documented in the schema itself (including a pointer to list_api_keys). The description adds no additional meaning about the identifier, so the baseline of 3 applies.

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 ('Permanently delete an API key') plus the immediate effect ('it stops working at once'), which no sibling (create/get/update/list_api_keys) implies. An agent can distinguish this from the read and update siblings without opening the schema.

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

Usage Guidelines4/5

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

Gives concrete preconditions and an explicit redirect: 'Needs an ADMIN key' and 'ADMIN keys can be deleted only in the dashboard' tells the agent when this tool will not work and where to send the user instead. It does not name a sibling tool as the alternative or describe when deletion is appropriate versus rotation via update_api_key, so it stops short of full when/when-not guidance.

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