Read rows of a callable table
query_dataRead rows of one table (plus up to three joined tables) with filters, ordering and keyset paging. Values come back as released by the publisher (value_layer). Each of columns is [name, type, has Refused / Don't know codes]; labels, units and codes are in describe_data. Returns data_available: false with the quoted terms when the dataset may not be passed on; never retry a refusal with other arguments. For a whole table use get_data_file.
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": {
"slug": "<slug>",
"table": "<table>"
},
"name": "query_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| join | No | One table, or 1-3 tables, each joined to table along a declared relation (describe_data relations). Every row of table is kept; columns of a joined table are named <join>.<col>. | |
| lang | No | en | |
| slug | Yes | ||
| hints | No | ||
| limit | No | ||
| table | Yes | ||
| where | No | All conditions must hold (AND). | |
| cursor | No | next_cursor from the previous response. | |
| columns | No | Default: the table's default_columns. Primary key columns are always returned first. With join: <join>.<col> names a column of the joined table. | |
| version | No | ||
| order_by | No | ||
| recode_na | No | true: each column's own Refused / Don't know codes (na_codes) become null before filtering and in the rows. | |
| max_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||