range-query
Run PromQL queries across a specified time range with start, end, and step parameters to retrieve Prometheus metric history for graphing and analysis.
Instructions
Execute a range Prometheus query
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>",
"step": "<step>"
},
"name": "range-query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End timestamp (RFC3339 or Unix timestamp) | |
| step | Yes | Query resolution step width (e.g. '15s', '1m', '1h') | |
| query | Yes | PromQL query expression | |
| start | Yes | Start timestamp (RFC3339 or Unix timestamp) | |
| timeout | No | Evaluation timeout (e.g. '30s') |