Skip to main content
Glama

revoke_agent_api_key

Destructive

Revoke an API key

Revokes one lasoak_ API key, the same action as Revoke on the dashboard. A revoked key can no longer be exchanged for a session at agentAuth, and its MCP event subscriptions stop. A session already minted from the key is not cut off: its id_token lasts out its hour. Revoking a key that is already revoked succeeds and changes nothing.

To revoke a key you hold the raw value of, you can instead POST it as token to /oauth/revoke (RFC 7009) without looking up its keyId.

Free.

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

Input Schema

NameRequiredDescriptionDefault
keyIdYesThe key's id, as returned by `createAgentApiKey` or `listAgentApiKeys`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Strong disclosure beyond the annotations: it says exactly what the revocation destroys (session exchange at `agentAuth` and MCP event subscriptions stop) and, importantly, what it does not (an already-minted session survives until its `id_token` expires in an hour). One tension: annotations declare idempotentHint=false while the description says revoking an already-revoked key "succeeds and changes nothing," which reads as idempotent; the core read/write/destructive claims, however, are consistent.

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?

Front-loaded with the action, then layered from broad (what it is) to specific (what breaks, what survives, idempotent behavior, escape hatch). The trailing "Free." is a stray pricing note but costs almost nothing.

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 one-parameter mutation with an output schema and explicit destructive/idempotency annotations, this covers everything an agent needs: what is destroyed, what survives, repeat-call behavior, and an alternative path. No material gap remains.

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 coverage is 100% and the single `keyId` parameter already documents its source (`createAgentApiKey` / `listAgentApiKeys`). The description adds only the contextual point that a `keyId` lookup can be skipped when you have the raw token, which is useful but not a semantic clarification of the parameter itself.

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?

The description opens with a specific verb and resource ("Revoke an API key") and narrows the scope to "one `lasoak_` API key," distinguishing it from a bulk operation in spirit. It never names the sibling revoke_unused_agent_api_keys, so an agent must infer the single-vs-bulk split from the word "one" rather than from an explicit contrast.

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?

It states a concrete alternative path: if you hold the raw key value, POST it to `/oauth/revoke` per RFC 7009 instead of looking up the `keyId`. That is real when-to-use-another-approach guidance. What it lacks is any steering between this tool and the bulk sibling, or prerequisites such as ownership/admin rights over the key.

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