Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Rotate Secret Password

update_secret_generated_password
Destructive

Rotates a password field on an existing secret with a server-generated value and writes it directly to the vault, keeping the password hidden from the model.

Instructions

Rotate a password field on an existing secret with a server-generated value.

The new password is generated using the template field's password rules and written directly to the vault via PUT /v1/secrets/{id}/fields/{slug}. The model never sees the old or new password value.

Before modifying a secret, check whether it requires approval:

  1. Call get_secret(id, summary=True) and inspect requiresApproval and requiresComment.

  2. If approval is required, call get_pending_access_requests() to check for an existing grant, or request access and wait for approval via handle_access_request().

  3. Always provide the comment parameter explaining why this secret is being modified. If the action is tied to a ticket, incident, or change request, that reference must be named in the comment.

Parameters

secret_id: ID of the secret to update. field_slug: Field slug of the password field (e.g. "password"). Use check_secret_template to discover slugs. password_field_id: secretTemplateFieldId of the password field. Used to generate a compliant password via the template rules. comment: Required when the secret has requiresComment or requiresApproval set. Must explain why this secret is being modified and, if the action is tied to a formal request (e.g. a Jira ticket, incident, or change request), that reference must be included.

Returns

dict {"result": {...}, "verification": {...}} with safe metadata only. The password value is never included.

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": {
      "secret_id": "<secret_id>",
      "field_slug": "<field_slug>",
      "password_field_id": "<password_field_id>"
    },
    "name": "update_secret_generated_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNo
secret_idYes
field_slugYes
password_field_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds materially: the password is generated server-side from template rules, neither old nor new value is ever returned to the model, the write goes through PUT /v1/secrets/{id}/fields/{slug}, and the return payload contains 'safe metadata only'. The approval-gate and mandatory-comment behavior are disclosures the annotations do not cover at all.

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 the action, then the workflow, then parameters — a sensible order. Some redundancy: the comment rationale is stated twice (step 3 and again under Parameters), and the Parameters/Returns block restates structured data in prose form, which adds length without adding much for an agent already reading the schema.

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 destructive, non-idempotent mutation with no output schema, the description covers everything an agent needs: the write path, the approval prerequisite chain, the comment obligation, and the shape of the return value ('result' plus 'verification', password never included). No material gap remains.

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 description coverage is 0%, so the description must carry the load and it largely does, defining all four parameters with intent — including that password_field_id is the secretTemplateFieldId used to derive a compliant password, and that field_slug should be discovered via check_secret_template. The only soft spot is comment, where the prose 'Always provide the comment parameter' sits slightly awkwardly against the schema's optional/default-null definition, leaving mild ambiguity about whether it is truly conditional.

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 ('Rotate a password field on an existing secret') and immediately qualifies it with 'with a server-generated value', which separates it from generic field-writing siblings like update_secret_fields where the agent supplies the value. The mechanism (generated from template rules, written via PUT, value never visible to the model) makes the operation unmistakable.

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?

Gives an explicit numbered pre-flight sequence: call get_secret(id, summary=True) to inspect requiresApproval/requiresComment, then get_pending_access_requests() or handle_access_request() if approval is needed. It also names check_secret_template as the way to discover field slugs, so the agent is routed to the right siblings at each decision point.

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