Skip to main content
Glama

Replace a worker secret

rotate_worker_secret

Replace the worker's signing secret (which: signing_secret) or callback token (which: callback_token). The old one stops working. Returns the new one once. It acts only with the human's agreement: called without confirm it returns confirmation_required and a summary of what it would do, and called with confirm: true it acts.

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": {
      "which": "<which>"
    },
    "name": "rotate_worker_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
whichYes
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial detail the annotations do not carry: the old value stops working, the new value is returned only once (so it cannot be re-read later), and the two-phase confirmation flow that governs whether any mutation happens. The only tension is that annotations declare destructiveHint=false while the text says the previous secret stops working; this reads as a replacement side effect rather than a contradiction.

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?

Four short sentences, front-loaded with the action, then the effect, then the return behavior, then the confirmation gate. The inline "which: value" notation ties prose to schema fields without redundant restatement.

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 mutation tool with no output schema, no annotations covering confirmation, and 0% schema description coverage, the definition covers all the gaps: what changes, what happens to the old value, how the new value is delivered, and how to authorize the action.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and does so: it spells out the meaning of both enum values of `which` and defines `confirm` precisely, including the observable return value (confirmation_required) when it is absent. Nothing about either parameter needs further inference.

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?

States a specific verb and resource ("Replace the worker's signing secret ... or callback token") and immediately names the two concrete objects via the enum values. An agent can tell this apart from disconnect_worker or register_worker without opening any schema.

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?

The description makes the usage condition explicit: it acts only with human agreement, returns confirmation_required when called without confirm, and acts with confirm: true. That is a clear when/how-to-call contract, but it never states when to prefer this over neighbouring tools such as disconnect_worker or register_worker.

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