get_code_list
Retrieve a statistical code list by its ID: get valid variable values from valuesets (vs_*) or aggregation mappings from groupings (agg_*), in Norwegian or English. Find available code lists in table metadata.
Instructions
Fetch a code list (valueset or grouping).
Valuesets (vs_*): Lists of valid values for a variable. Groupings (agg_*): Aggregation mappings (e.g., municipality mergers).
Find available code lists in table metadata under 'codeLists'.
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": {
"code_list_id": "<code_list_id>"
},
"name": "get_code_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language - 'no' for Norwegian (default), 'en' for English. | no |
| code_list_id | Yes | Code list ID (e.g. 'vs_Fylker', 'agg_KommSummer'). |