Boj Dataframe Query
boj_dataframe_queryRun one read-only SELECT, optionally with CTEs, over staged BOJ tables. Use boj_dataframe_describe to discover table and column names. Give result columns distinct names and add a top-level ORDER BY with deterministic tie-breakers to page results.
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": "boj_dataframe_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Read-only DuckDB SELECT or WITH ... SELECT, up to 65,536 UTF-16 code units. | |
| limit | No | Result rows per page, capped at 1,000. | |
| cursor | No | Continuation from the same canvas, SQL, and limit. | |
| canvas_id | Yes | Canvas ID as an earlier response on this server returned it — exactly 10 characters of letters, digits, hyphens, and underscores. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | How to retrieve the remaining rows of an unordered query. | |
| rows | No | Result rows for this page. | |
| error | No | Present when the call failed. Absent on success. | |
| columns | No | Result column names in SELECT order. | |
| has_more | No | Whether more rows matched after this page. | |
| truncated | No | Whether unordered matches were omitted without a continuation. | |
| attribution | No | Bank of Japan source credit. | |
| next_cursor | No | Continuation for an ordered query with more rows. | |
| applied_limit | No | Applied rows per page after the cap. | |
| returned_count | No | Exact number of rows returned on this page. | |
| requested_limit | No | Requested result rows per page, including the default. |