explore_query
Execute a Grafana Explore query using the specified connection and query definitions, returning the JSON response.
Instructions
Execute a Grafana Explore query via the /api/ds/query endpoint.
Args: connection_name: Name of the Grafana connection queries: List of Explore query definitions to execute range_from: Optional relative or absolute start time (e.g., 'now-6h') range_to: Optional end time (e.g., 'now') max_data_points: Optional maximum number of datapoints to request interval_ms: Optional query interval in milliseconds additional_options: Extra fields to merge into the request body
Returns: JSON string with the query response payload.
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": {
"connection_name": "<connection_name>",
"queries": "<queries>"
},
"name": "explore_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queries | Yes | ||
| range_to | No | ||
| range_from | No | ||
| interval_ms | No | ||
| connection_name | Yes | ||
| max_data_points | No | ||
| additional_options | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |