Skip to main content
Glama

Delete an API key

delete_api_key
DestructiveIdempotent

Permanently deletes a runtime API key. Requires the apikeys:write scope. Only API keys owned by the signed-in user can be revoked.

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

Input Schema

NameRequiredDescriptionDefault
idYesRuntime API key id
uuidYesProject UUID

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=true, so the safety profile is covered; the description adds real value beyond them by emphasizing permanence ('Permanently deletes'), the required `apikeys:write` scope, and the ownership restriction that gates which keys can be revoked. It does not describe failure behavior for out-of-scope keys, which keeps it below a 5.

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, each carrying distinct information: the action, the permission requirement, and the ownership constraint. The destructive nature is front-loaded and nothing is redundant.

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 two-parameter destructive delete with complete annotations and full schema coverage, the description covers action, permanence, auth scope, and ownership precondition — enough to call it correctly. It stops short of describing what happens on a permission or ownership failure, a minor gap for this complexity level.

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 both `id` and `uuid` are already documented in the schema. The description adds no clarification about the id/uuid pair (e.g., why a project UUID is needed to delete a key), so the 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 and resource ('Permanently deletes a runtime API key') and narrows the target to runtime keys owned by the signed-in user, which separates it from organization/personal key deletion and from create/update/list siblings. It does not name a sibling explicitly, so it stops short of full differentiation.

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?

The ownership constraint ('Only API keys owned by the signed-in user can be revoked') implies when this tool is applicable, but there is no explicit when-to-use/when-not guidance or pointer to alternatives such as delete_organization_personal_key. Usage is inferable but not spelled out.

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