Skip to main content
Glama

Ekwo OS — open source accounting: ledger, invoices and VAT on your own Supabase or Postgres

Withdraw a machine key

revoke_api_key
DestructiveIdempotent

Stops a key working, now and for good. There is no un-withdraw: a secret that has been out of the building is issued again rather than brought back. Whatever the machine was doing with it stops, so say so before calling it.

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

Input Schema

NameRequiredDescriptionDefault
api_key_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / api_key_id / format
      Added value: +"uuid"
    • addedInput schema / properties / api_key_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Beyond destructiveHint=true, the description discloses the key traits an agent needs: the revocation is permanent ('no un-withdraw'), the secret cannot be restored and must be reissued, and dependent machine workloads break immediately. That is genuine added context. It stops short of stating authorization requirements or how the response confirms revocation.

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 irreversible effect, and each one carries information (effect, irreversibility, downstream consequence). The middle sentence is a touch florid ('issued again rather than brought back'), but it is not padding.

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 one-parameter destructive mutation with annotations covering destructiveness and idempotency, the description supplies the missing behavioral stakes. The remaining hole is how to specify the key, which neither schema nor description explains.

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

Parameters2/5

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

Schema description coverage is 0% for the single required parameter, so the description carries the burden — and it never mentions api_key_id or clarifies that the key is identified by UUID rather than by the secret string itself. With one parameter and no coverage, the lack of any identifier guidance is a meaningful gap, and the mention of 'a secret' could even nudge an agent toward passing the wrong value.

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 concrete effect on a concrete resource ('Stops a key working, now and for good'), which an agent can distinguish from create_api_key/list_api_keys and from revoke_invitation/revoke_share by resource type. The phrasing is slightly figurative rather than naming 'API key' explicitly, but the title and schema make the target unambiguous.

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 implies when you should use it — 'say so before calling it' — by warning that whatever the machine was doing will stop, which is a real pre-call coordination requirement. However, it gives no explicit when-not condition and does not name the alternative path (e.g. rotating via create_api_key) or any permission prerequisite, so the routing guidance is implied rather than stated.

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.