Skip to main content
Glama

Rotate API key

rotate_api_key
Destructive

Revoke the API key this session is using and return a new gk_live_ secret once (requires api:account). Store the new key in the secret manager and reconnect with it. The previous key stops working. The secret is not recoverable after this response.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations: the annotations only flag destructive/non-idempotent, while the description discloses that the previous key stops working, that the new secret is returned exactly once, and that it is unrecoverable after the response. Those are the exact facts an agent needs to avoid destroying its own credentials.

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?

Four short sentences, front-loaded with the action and the return value, then the required scope, then the irreversibility warning. Every sentence carries a distinct, actionable fact.

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?

With no parameters and no output schema, the description carries the full burden and does so: it describes the returned secret's shape (gk_live_), its one-time availability, and the required post-call workflow. Nothing an agent needs to call this safely is missing.

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?

The tool takes zero parameters, so the baseline is 4; there is nothing for the description to disambiguate. The only input-like information given is the required api:account scope, which is a useful addition.

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 precise verb and resource ('Revoke the API key this session is using') plus the side effect of returning a new gk_live_ secret. No sibling tool touches credentials, so differentiation is trivially clear.

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 the precondition ('requires api:account') and prescribes the follow-up workflow (store the new key in the secret manager, reconnect with it). It does not name when-not-to-use or an alternative path, but no plausible alternative exists among the siblings.

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