Export a choice list
export_choice_listGenerate a structured choice list from a statistical classification at a chosen hierarchy level, requiring one codelist ID to keep answer lists separate for MICS exports.
Instructions
Return a structured choice list at a selected hierarchy level. MICS exports require one codelist_id and never merge unrelated answer lists.
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": {
"classification_id": "<classification_id>"
},
"name": "export_choice_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| limit | No | ||
| format | No | xlsform | |
| codelist_id | No | ||
| classification_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| level | Yes | ||
| format | Yes | ||
| warning | No | ||
| codelist_id | No | ||
| option_count | Yes | ||
| codelist_title | No | ||
| classification_id | Yes |