Skip to main content
Glama

Rotate app secret

rotate_app_secret
Destructive

Replace an app's secret, for example after it leaked. Returns the new secret once: write it straight to the git-ignored env file or secret store the old one came from, never into code, commits or your reply. The old secret keeps working for grace_minutes (default 1440, 24 hours) so servers can be updated; 0 stops it at once, which breaks every server still using it. Ask the user first and pass the app's exact name as confirm.

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": {
      "app_id": "<app_id>",
      "confirm": "<confirm>"
    },
    "name": "rotate_app_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe app's ID (app_...), from list_apps.
confirmYesThe app's exact name, as list_apps or get_app shows it, typed here only after the user has agreed to this action for that app.
grace_minutesNoHow long the old secret keeps working (default 1440; at most 7 days; 0 = stop at once).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With annotations already flagging destructiveHint=true and non-idempotent, the description adds the facts an agent actually needs: the new secret is returned exactly once and must never be echoed, and the old secret keeps working for grace_minutes with the concrete consequence that 0 breaks every server still using it. This is unusually strong behavioral disclosure for a destructive 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?

Front-loaded with purpose, then the one-time-return warning, then grace-period semantics, then the confirmation requirement. Dense but nearly every clause carries operational weight; only the phrase 'or secret store the old one came from' is slightly padded.

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?

There is no output schema, so the description must explain returns — it does ('Returns the new secret once'). Combined with the grace-period consequences and the human-approval gate, an agent has everything needed to call this destructive tool safely.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: confirm must be the exact app name typed only after user agreement, and grace_minutes=0 is framed as an immediacy/breakage trade-off rather than just a bound. It reinforces the schema rather than merely restating it.

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 an app's secret') plus the motivating scenario (a leak), which cleanly separates it from siblings like update_app or delete_app. An agent knows immediately what this does.

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?

Gives a clear triggering condition ('after it leaked') and a hard procedural gate ('Ask the user first and pass the app's exact name as confirm'). It does not name alternatives or when-not-to-rotate cases, but no sibling in the catalog performs rotation, so the practical gap is small.

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