query_instant
Executes a PromQL instant query against a Prometheus-compatible datasource and returns result series with metric labels plus timestamp/value pairs.
Instructions
Run a PromQL instant query against a Prometheus-compatible datasource. Returns the result series array (each item: metric labels + [timestamp, value]).
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": {
"ds_id": "<ds_id>",
"query": "<query>"
},
"name": "query_instant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Optional evaluation time (Unix seconds, default now) | |
| ds_id | Yes | Datasource ID | |
| query | Yes | PromQL expression |