aggregate_logs
Count log entries grouped by level, source, status, or route over a recent time window to spot trends such as error rates and status-code distribution.
Instructions
Count log entries grouped by a dimension over a recent window. Call this to spot trends, e.g. error rate or status-code distribution.
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": "aggregate_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minutes | No | Window size in minutes (default 60). | |
| group_by | No | Dimension to group counts by. | |
| project_id | Yes | The project to query. Call list_projects first to see which ids you can use. |