metrics_levels
Count and calculate percentages of debug, info, warn, error, and fatal log entries to reveal a project's severity profile and spot elevated error rates.
Instructions
Distribution of log levels: count and percentage of debug, info, warn, error, and fatal entries. Use this to understand the severity profile of logs and if error rates are elevated.
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": "metrics_levels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minutes | No | Window size in minutes (default 60). | |
| project_id | Yes | The project to query. Call list_projects first to see which ids you can use. |