Skip to main content
Glama

rotate_my_key

Destructive

Rotate the calling key: returns a new key (shown once) with the same scopes; the old key keeps working for grace_seconds (default 3600, 0 = revoke now).

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

Input Schema

NameRequiredDescriptionDefault
grace_secondsNoSeconds the old key keeps working, 0-86400. Default 3600; 0 revokes it now.
idempotency_keyNoOptional. Reuse on retries so the action happens once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / grace_seconds / description
      Added value: +"Seconds the old key keeps working, 0-86400. Default 3600; 0 revokes it now."
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

The annotations declare a destructive, non-idempotent write, but the description goes well beyond them: the new secret is shown only once, the old key survives for a configurable grace window, and grace_seconds=0 revokes immediately. That is precisely the operational nuance an agent needs before calling an irreversible credential operation.

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?

One front-loaded sentence carries the action, the return shape, and the grace-window semantics without filler. The parenthetical for grace_seconds is the right length and no sentence is wasted.

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?

There is no output schema, and the description compensates by stating the return is a new key shown once with the same scopes. The idempotency parameter is handled by the schema text. Slightly more on failure modes (e.g., what happens if rotation is retried outside the idempotency key) would make it fully complete.

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 description coverage is 100%, so both grace_seconds and idempotency_key are already documented in the schema with identical wording (default 3600, 0 revokes now). The description restates rather than extends this, so it earns the baseline, not a bonus.

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?

"Rotate the calling key" names a specific verb and resource, and immediately clarifies the scope ('the calling key', not another user's key) plus the outcome ('returns a new key with the same scopes'). No sibling tool in the catalog does key rotation, so the ambiguity risk is low and the statement is self-sufficient.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the usage context (rotating your own credential) but offers no explicit when-to-use trigger, such as key compromise or scheduled rotation, and no mention of prerequisites like the required scope or owner approval. Guidance is implied rather than stated.

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