query
Evaluate PromQL expressions at a single point in time to retrieve current metric values, with series sorted largest first.
Instructions
Evaluate PromQL at a single point in time (an instant query). Series are sorted by value, largest first.
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": {
"promql": "<promql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Evaluation time as RFC3339 or Unix seconds. Empty for now. | |
| promql | Yes | PromQL expression, e.g. 'sum by (job) (rate(http_requests_total[5m]))'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |