api_key_rotate
Generate a new API key, verify it with a test request, and revoke the old key. The new key is returned only once, so save it immediately.
Instructions
Rotate the current API key: generates a new key, verifies it works by making a test request, then revokes the old key. Returns the new key and rotation status. IMPORTANT: Save the new key immediately — it will not be shown again.
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": "api_key_rotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_name | No | Optional name for the newly generated API key. |