Skip to main content
Glama

rotate-password

Destructive

Rotate database passwords by secret reference, generating new values or applying supplied ones, with dry-run planning and optional plaintext storage.

Instructions

dbabrain common.cli rotate-password: Which secret refs to rotate, and how. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • refs: The refs.

  • match: Or a pattern.

  • allow_name_host: Removed in 0.26.0 (owner decision G3.4): a request carrying true is refused. A password is changed only on the instance db_instances.json names for its ref - never on a host taken from the ref's name.

  • host_overrides: {ref: host}.

  • password_length: How long a new password is.

  • passwords: {ref: new value}, instead of generating.

  • plaintext_store: Where a plaintext copy goes.

  • dry_run: Plan only: change nothing.

  • timeout_seconds: How long to wait.

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-password"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Beyond the destructive/openWorld annotations, the description discloses substantive behavior: requests carrying allow_name_host=true are refused, and a password is changed only on the instance named in db_instances.json, never on a host derived from the ref name. It also states that dry_run changes nothing and that plaintext_store writes a plaintext copy, which are exactly the mutation risks an agent needs.

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?

Content is front-loaded into a header line, a mutation/precondition note, and a bulleted field list, so it scans well. A few lines are filler or restate the field name ('The refs.'), and the opening sentence is an incomplete fragment.

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

Completeness4/5

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

For a destructive, open-world command with an output schema (so return values need not be described) and a single opaque `request` parameter, the description supplies the fields, the confirm/reason precondition, and the host-safety rule. It stops short of describing failure/partial-rotation behavior or the generation mechanism, but nothing essential is missing.

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 0% and the schema exposes only a generic `request` object, so the description carries the full burden and does document every request field: refs, match, host_overrides, password_length, passwords, plaintext_store, dry_run, timeout_seconds. It adds real semantics (generated password unless `passwords` supplied, host_override mapping, dry_run plans only), though some entries are tautological ('refs: The refs.', 'match: Or a pattern.').

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 description names the resource and action ('Which secret refs to rotate, and how'), so an agent can tell this rotates secret/password refs rather than checking or encrypting them. It is a fragment rather than a full verb+resource statement, and it does not name a sibling such as check-secret or encrypt-secret to differentiate against.

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 only implied by the field list; there is no explicit when-to-use versus alternatives guidance. The one real guideline is a prerequisite: emergency-operations commands require `confirm: "yes"` plus a `reason`, which is useful but is a precondition rather than routing guidance.

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

Deploy Server

Other Tools