cockpit_create_token
Create a Cockpit token for accessing metrics and logs. Specify name and optional scopes; secret key is returned once.
Instructions
Create a Cockpit token.
The secret key is only returned once, on creation.
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": {
"name": "<name>"
},
"name": "cockpit_create_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Token name. | |
| region | No | Region such as ``fr-par``. Defaults to the configured region. | |
| project_id | No | Optional project ID. Defaults to the configured project. | |
| token_scopes | No | Optional list of scopes, e.g. ``read_only_metrics``, ``write_only_logs``, ``full_access_alert_manager``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||