Oecd Dataframe Query
oecd_dataframe_queryRun a read-only SQL SELECT against OECD observation tables staged on a DataCanvas by oecd_query_dataset. Call oecd_dataframe_describe first to discover exact table and column names, then use this tool for aggregation, filtering, GROUP BY, JOIN, and window functions. Returns up to limit rows (default 100, at most 1,000 per call); truncated: true marks a result with more rows than came back, and its notice says how to reach the rest. A query still running after 30 seconds is stopped. Unavailable when the server runs with DataCanvas disabled.
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": "oecd_dataframe_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Read-only SELECT statement. Reference tables by the names returned by oecd_dataframe_describe. Only SELECT statements are allowed — DDL, DML, and file-reading functions are rejected. | |
| limit | No | Most rows to return; for more than one call returns, aggregate in SQL or page with ORDER BY … LIMIT … OFFSET. Default 100; a larger value returns at most 1,000 and says so. | |
| canvas_id | Yes | Canvas ID returned by oecd_query_dataset — exactly 10 characters of letters, digits, hyphens, and underscores. Identifies the DataCanvas session holding the observation tables. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Result rows in query order: at most limit rows, and at most 1,000 per call. When truncated is true the result has more rows than these. | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Present when a requested limit was above the per-call maximum (naming the limit requested and the one served), or when truncated is true (naming the ways to reach the rows not returned). | |
| row_count | No | Number of rows returned — the length of rows, never the size of the full result. | |
| truncated | No | True when the result has more rows than this call returned — cut at limit; the notice says how to reach the rest. Omitted (never false) when rows is the complete result. | |
| column_names | No | Column names in the result, in order. |