range_query
Evaluate a PromQL expression across a time range to inspect metric trends. If results are truncated, narrow the selector or raise the limit.
Instructions
[READ] Evaluate a PromQL expression over a time range.
Args: query: A PromQL expression. start: Range start (RFC-3339 or unix timestamp). end: Range end (RFC-3339 or unix timestamp). step: Resolution step (e.g. '60s', '5m'). target: Prometheus target name from config; omit for the default.
Returns an envelope with returned/limit/truncated. If
truncated is true the result is partial — narrow the selector or raise
the limit rather than treating it as complete.
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>",
"start": "<start>",
"end": "<end>"
},
"name": "range_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| step | No | 60s | |
| query | Yes | ||
| start | Yes | ||
| target | No |