query_logs_batched
Fetches a time-bucketed sample across a larger log window, returning a balanced slice from each bucket instead of only the newest lines, for high-volume logs.
Instructions
Fetch a time-bucketed sample over a larger window. Useful when logs are high-volume: returns a balanced slice across time buckets instead of only the very latest lines.
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": "query_logs_batched"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Optional substring filter across message and raw line. | |
| limit | No | Total max rows returned (default 400). | |
| source | No | Source name from list_sources, e.g. 'app'. Omit to use all sources. | |
| minutes | No | Window size in minutes (default 60). | |
| per_bucket | No | Max rows per bucket (default 20). | |
| bucket_minutes | No | Bucket width in minutes (default 5). |