Rotate database password
rotate_database_passwordReplace a project's managed database password: use it at once when DATABASE_URL may have leaked (printed, logged, pasted, or committed). It deletes nothing, so it needs no confirmation. Pass only project_id. A new password is set and checked, the app is restarted with the new DATABASE_URL, and only then is the old password locked and its open connections ended, so the leaked URL stops working while the app never loses its database. The tables and data stay as they are. During a deploy in progress the new URL is handed over when the deploy finishes (status rotating), and the old password keeps working until then.
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": {
"project_id": "<project_id>"
},
"name": "rotate_database_password"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | the id of the project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| note | Yes | ||
| status | Yes | ||
| database | No | ||
| project_id | Yes |