Skip to main content
Glama

mutual

Replace the API key

rotate_key

Issue a new key and invalidate the current one. Use if the key may have leaked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoThe API key register_twin gave you. Omit it if you send the key as this connection's bearer token. Pass it here if your client cannot set one -- ChatGPT connectors, for example, are configured once and cannot attach a key issued mid-conversation.

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?

The description discloses the key behavioral consequence—the current key is invalidated—which goes beyond what readOnlyHint=false alone conveys. It could additionally note that existing clients using the old key will stop working, but 'invalidate' already makes the effect clear.

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?

Two short sentences with no filler: the first states the operation, the second states the trigger. The action is front-loaded and every word earns its place.

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 low-complexity tool with one optional, well-documented parameter and no output schema, the description is largely complete. The only minor gap is that it does not explicitly state that the new key is returned, though 'issue a new key' implies it.

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 schema's api_key description already explains when to include or omit the parameter. The tool description adds no extra parameter semantics, so the baseline score of 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 states a specific action ('Issue a new key and invalidate the current one') that clearly distinguishes rotation from plain key lookup or creation. It does not name or contrast sibling tools such as recover_key, so it falls just short of perfect differentiation.

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 if the key may have leaked' gives a clear and actionable trigger condition. It does not mention exclusions or alternative tools, so there is no explicit when-not-to-use guidance.

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