Rotate Secret Password
update_secret_generated_passwordRotates 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:
Call
get_secret(id, summary=True)and inspectrequiresApprovalandrequiresComment.If approval is required, call
get_pending_access_requests()to check for an existing grant, or request access and wait for approval viahandle_access_request().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
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| secret_id | Yes | ||
| field_slug | Yes | ||
| password_field_id | Yes |