Query Eurostat Dataframes
eurostat_dataframe_queryRun one read-only SQL SELECT against the tables staged on a Eurostat dataframe canvas, to reach observations past an inline preview and to aggregate or join them without re-fetching. Call eurostat_dataframe_describe first for the table and column names. Statement chaining, other verbs, and functions that read files or external data are rejected. Returns every complete row up to the canvas row limit.
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": {
"canvas_id": "<canvas_id>",
"sql": "<sql>"
},
"name": "eurostat_dataframe_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One read-only SELECT over the names eurostat_dataframe_describe reports, e.g. SELECT geo, AVG(obs_value) AS mean FROM df_a1b2c3d4 WHERE time >= '2020' GROUP BY geo ORDER BY mean DESC. | |
| canvas_id | Yes | The canvasId a eurostat_query_dataset, eurostat_download_dataset or eurostat_get_dimension_values response returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Complete rows keyed by column name, nested cells as JSON. 64-bit integers arrive as strings; cast to DOUBLE in SQL for a number. | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Row-limit cut disclosure with SQL paging guidance. | |
| columns | No | Column names in projection order. | |
| canvasId | No | Canvas the query ran against. | |
| rowCount | No | Complete rows returned. | |
| truncated | No | True when the canvas row limit cut rows: page the same deterministic SELECT over unchanged tables with a total ORDER BY (tie-breakers for tied keys) and LIMIT/OFFSET, advancing OFFSET by rowCount; an unordered first page restarts sorted at OFFSET 0. |