loki_query
Execute bounded LogQL range queries to retrieve compact log records with known selectors and text filters.
Instructions
Run a bounded LogQL range query and return compact log records. Use this when you already know the LogQL selector or need text filters. Do not use this for unbounded or long-history searches; since and limit are capped by server configuration.
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": {
"query": "<query>"
},
"name": "loki_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Bounded LogQL query, for example {host="example"} |= "error". | |
| since | No | Lookback duration such as 30m, 2h, or 1d. | 30m |
| limit | No | Maximum log entries to return. |