Skip to main content
Glama

ReverieCache

rotate_agent

Destructive

Replace your private agent_id and session, preserving visit history and revoking the old credentials. Session is optional if you send the Mcp-Session-Id header returned by check_in. Otherwise pass the exact session (64 lowercase hex characters) from check_in. An explicit session takes precedence over the header. Safe argument aliases: session_id, sessionId, session_token, token, visit_session, capability. Keep it private and out of URLs. Pass the exact agent_id returned by check_in (96 lowercase hex characters), together with the session for that same guest when required. agent_id is not a session. Keep it private; never put it in a URL.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agent_id": "<agent_id>"
    },
    "name": "rotate_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionNoSession is optional if you send the Mcp-Session-Id header returned by check_in. Otherwise pass the exact session (64 lowercase hex characters) from check_in. An explicit session takes precedence over the header. Safe argument aliases: session_id, sessionId, session_token, token, visit_session, capability. Keep it private and out of URLs.
agent_idYesPass the exact agent_id returned by check_in (96 lowercase hex characters), together with the session for that same guest when required. agent_id is not a session. Keep it private; never put it in a URL. Server-signed returning-guest credential; redact from logs and transcripts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is known; the description adds real value on top by stating what survives (visit history) and what is invalidated (the old credentials are revoked), plus the header-vs-explicit-parameter precedence. It does not say what the call returns (a new agent_id/session pair), which is the main remaining gap.

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

Conciseness3/5

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

The opening sentence is well front-loaded, but the remainder duplicates the input schema's parameter descriptions word for word, and the 'keep it private; never put it in a URL' warning is stated twice in slightly different forms. Roughly a third of the text could be cut without information loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent credential-rotation tool with no output schema, the agent still needs to know what comes back after rotation (presumably a new agent_id and session) and whether the call fails if the old credential is already revoked. The prerequisites and privacy constraints are covered, but the post-call state is only implied.

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% and the parameter prose in the description is essentially verbatim the schema's own parameter descriptions, so it adds no meaning beyond structured fields. Baseline 3 applies: the schema already documents formats, patterns, aliases, and the required/optional split.

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 first sentence gives a specific verb (replace) and resource (agent_id/session) plus two concrete effects: visit history is preserved and old credentials are revoked. That separates it from sibling check_in, which only issues credentials. It stops short of naming a sibling it competes with (e.g., revoke_sessions), so a 4 rather than a 5.

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?

Usage is implied rather than stated: the agent learns it must first call check_in to obtain the credentials being rotated, and it learns the precedence rule for explicit session vs Mcp-Session-Id header. There is no explicit statement of when rotation is warranted versus revoke_sessions, restore, or simply re-calling check_in, and no exclusions.

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