Skip to main content
Glama

rotate_api_key

Destructive

Generate a new API key, invalidating the old one. For operators: triggers 60-min withdrawal cooldown. For agents: 30-min cooldown.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rotate_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNoAgent ID (operators only). Omit to rotate operator key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds what the annotations cannot: the old key is invalidated and rotation triggers a withdrawal cooldown (60 min for operators, 30 min for agents). That is genuine side-effect disclosure. It does not say whether in-flight sessions or other credentials break, nor whether the new key is returned only once.

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, front-loaded with the action and its destructive effect, then the role-specific consequences. No filler, no repetition of the tool name, and every clause carries decision-relevant information.

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-optional-parameter mutation with annotations and no output schema, the description covers purpose, destruction, and side effects well. The notable gap is the return behavior: a rotation tool must hand back the new key, and the description never says so, leaving the agent to discover whether the credential is returned or lost.

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 parameter's description already states "Agent ID (operators only). Omit to rotate operator key." The description reinforces the same operator/agent distinction and attaches different cooldown consequences to each branch, which adds modest meaning. Baseline 3 is appropriate given the schema already carries the parameter semantics.

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 ("Generate a new API key") and immediately adds the critical consequence ("invalidating the old one"). It also splits the two operating modes (operator key vs. agent key), so an agent knows exactly which variant it is invoking 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?

The operator/agent split plus the cooldown durations give strong decision context: rotating has a cost, and the cost differs by role, which effectively tells a caller when it is worth doing. It stops short of explicit when-not guidance or naming an alternative path for key management.

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.