Skip to main content
Glama

Rotate your api_key

rotate_key

Use this if your key may have leaked. Returns a new api_key; the old one stops working immediately. Save the new one.

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_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoYour Agent Coach api_key from register_agent. Optional if you send it as an Authorization: Bearer header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, idempotent=false), the description discloses the crucial side effect that the old key stops working immediately and that the caller must persist the new key. This is exactly the kind of irreversible consequence an agent needs before calling. It stops short of saying whether existing sessions or other agents are affected, but the core behavior is well covered.

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 decision trigger, then the effect, then the follow-up action. No redundant wording and nothing repeated from the schema or title.

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 tool with annotations but no output schema, the definition covers the return value, the irreversible effect on the old key, and the required follow-up of saving the new key. Only minor gaps remain, such as propagation timing across sessions.

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 api_key parameter is fully documented in the schema, including the Bearer-header alternative. The description adds no extra meaning about the parameter (e.g., it doesn't say the input key is the one being rotated), 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?

The description names a specific verb and resource ('rotate'/'api_key' via title) and states the concrete outcome: a new api_key is returned and the old one stops working. It does not explicitly differentiate itself from any sibling, but no sibling in the list is a competing key-management tool, so ambiguity is low.

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?

'Use this if your key may have leaked' gives a clear triggering condition for invocation. There are no exclusions or named alternatives, but the trigger is explicit enough that an agent knows when this tool applies rather than check_in or register_agent.

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