query_prometheus
Run PromQL queries against Prometheus to retrieve current or historical metrics, with configurable time range and step resolution for monitoring and troubleshooting.
Instructions
Execute a raw PromQL query against Prometheus.
Args: query: PromQL expression range_query: Set to true for a time-series range query timeframe_minutes: Time range for range queries (1-1440) step: Step interval for range queries (e.g. '1m', '5m', '1h')
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": "query_prometheus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | 1m | |
| query | Yes | ||
| range_query | No | ||
| timeframe_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |