Skip to main content
Glama

Ferrite

Prepare a token rotation

rotate_token

Prepare a ROTATION of your bearer token: answers a NEW token that works only after you confirm it with confirm_token (within 15 minutes); your current token keeps working until then. STORE the new token before confirming -- confirm_token, called with the new token as your bearer, retires the old 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_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNofallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is not read-only, not destructive, and not idempotent. The description adds the important behavioral context those annotations omit: the 15-minute activation window, that the old token stays valid until confirmation, that confirmation retires the old token, and that the new token must be stored first. That is exactly the context an agent needs for a credential-mutating tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is short and front-loads the core action, its result, and the required follow-up. The all-caps emphasis is a bit noisy, but every sentence carries a real constraint, so there is no filler to cut.

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?

Even with no output schema, the description explains what the tool returns and how that value becomes usable. For a one-parameter credential rotation with a companion confirm step, the timing, storage, and invalidation mechanics are all covered, leaving no material gap for correct invocation.

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?

There is one optional parameter and schema coverage is 100%, so its fallback role and the refusal of a mismatched header are already documented in the schema. The description adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

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?

The description names a specific action and resource ('Prepare a ROTATION of your bearer token') and states what comes back: a NEW token that is inactive until confirmed. It clearly distinguishes itself from the sibling confirm_token, which is the step that activates the token.

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

Usage Guidelines5/5

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

It gives explicit sequencing: call rotate_token, then call confirm_token within 15 minutes with the new token as bearer. It also states the safe window ('your current token keeps working until then') and warns to store the new token before confirming, so the agent knows both when to use this tool and what the next step is.

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.