get_selection_data
Fetch actual statistical data from a predefined selection as CSV. Use a selection code to retrieve data, optionally limiting rows.
Instructions
Fetch actual statistical data from a predefined selection as CSV.
This is the primary and most reliable way to get data. Find selection codes via search_selections() or get_dataset_selections().
Args: selection_code: Selection code (e.g., CEN0101HT01). max_rows: Maximum number of data rows to return (default 100). Set to 0 for unlimited (use with caution — some tables are very large).
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": {
"selection_code": "<selection_code>"
},
"name": "get_selection_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selection_code | Yes | ||
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |