query_metrics
Run raw PromQL range queries against Prometheus to obtain compacted metric summaries for diagnosing Kubernetes issues.
Instructions
Escape hatch: raw PromQL range query against the configured Prometheus, compacted (first/last/min/max/avg + 12 samples per 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>"
},
"name": "query_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | ||
| query | Yes | ||
| window | No | Time window like 15m, 2h, 1d (default 1h) |