query_data_cube
Execute SQL queries on data cubes to retrieve aggregated data with custom dimensions and measures.
Instructions
Execute SQL query against a data cube (Pivot). Use 'source' from list_data_cubes. Syntax: FROM "datacube"."SOURCE", "DIM:dimension_name", MEASURE_BY_ID('measure_id')
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_string": "<query_string>"
},
"name": "query_data_cube"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_string | Yes | SQL query with data cube syntax | |
| exact_results_only | No | Use exact results for TopN/COUNT DISTINCT (default: false) |