metrics_query_range
Execute PromQL range queries against a configured observability backend to return time-series data for a specified time window and resolution.
Instructions
Execute a range PromQL query and return a time series.
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": "metrics_query_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Range end (ISO 8601 or Unix epoch) | |
| step | No | Query resolution step (e.g. "15s", "1m", "5m") | 60s |
| query | Yes | PromQL expression | |
| start | Yes | Range start (ISO 8601 or Unix epoch) | |
| target | No | Named backend instance to query (configured: default). Defaults to the primary. |