Skip to main content
Glama

bus_rotate_token

Rotate an agent's per-agent token when a leak is suspected: invalidate the old token and reveal the new one once.

Instructions

Rotate this agent's per-agent token: the old token stops working immediately and the new one is shown once. Use when a token may have leaked. Do not confuse with bus_register, which never changes a token.

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": "<agent>"
    },
    "name": "bus_rotate_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesYour registered agent name.
tokenNoYour current token, proving this rotation is yours. Required on a token-enforced bus.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.12
    • addedInput schema / properties / agent / description
      Added value: +"Your registered agent name."
    • addedInput schema / properties / token / description
      Added value: +"Your current token, proving this rotation is yours. Required on a token-enforced bus."
  2. First observedv0.5.11

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the critical effects: the old token stops working immediately and the new token is shown only once. That is important behavioral context for a non-readonly, non-idempotent operation, though it does not discuss failure modes or permission errors.

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?

The description is two tight sentences with zero waste. The core effect is front-loaded before the sibling distinction.

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?

For a simple two-parameter tool with no output schema, the description covers the operation, the immediate invalidation behavior, the one-time token return, and when to use it. Nothing an agent needs in order to call it correctly is missing.

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 the agent and token parameters are already fully documented in the schema. The description does not add syntax, format, or conditional meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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 states a specific verb and resource: rotate this agent's per-agent token. It also explicitly distinguishes the tool from bus_register, so an agent can select it without confusing the two.

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 a clear when-to-use condition: 'Use when a token may have leaked.' It also names and rules out the most relevant sibling, bus_register, which never changes a token.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.