Rotate app secret
rotate_app_secretReplace 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
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app's ID (app_...), from list_apps. | |
| confirm | Yes | The 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_minutes | No | How long the old secret keeps working (default 1440; at most 7 days; 0 = stop at once). |