query_grafana
Run a unified Grafana data-source query (POST /api/ds/query) on the tenant's Grafana connection — PromQL/Loki/SQL etc. via a data source. Required: queries (array of Grafana query objects, each with a datasource). Optional: from, to.
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": {
"queries": "<queries>"
},
"name": "query_grafana"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the query time range | |
| from | No | Start of the query time range | |
| queries | Yes | Grafana query objects, each with a datasource |