Describe a BFS STAT-TAB table
get_bfs_table_metadataRetrieve STAT-TAB table metadata: dimensions, variable codes/labels, value counts, time range, defaults, and cell counts; list or search values for one variable to find codes.
Instructions
Dimensions of one STAT-TAB table: each variable's code, label, number of values, first values (code + label), which one is time (with range), the default used when unspecified, and the cell count. Pass 'variable' to list (and 'value_filter' to search) all values of one dimension, e.g. to find a commune code. Examples: {table_id:'px-x-0102010000_101'}, {table_id:'px-x-0102010000_101', variable:'Kanton', value_filter:'Bern'}.
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": {
"table_id": "<table_id>"
},
"name": "get_bfs_table_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of titles/labels: de, fr, it or en (default en) | en |
| limit | No | With 'variable': max values listed | |
| table_id | Yes | Table id like 'px-x-0102010000_101' (or its API path / STAT-TAB URL) | |
| variable | No | List values of this variable only (code or label) | |
| max_values | No | Values shown per variable | |
| value_filter | No | With 'variable': substring filter on value codes/labels |