fetch_metadata
Retrieve detailed metadata for a PxWeb table, including variable IDs, value codes, and code lists, to understand its structure and construct accurate queries.
Instructions
Fetch detailed metadata for a table to understand its structure.
Returns variable IDs, value codes, elimination info, and available code lists. Use this to construct queries.
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": "fetch_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language - 'no' for Norwegian (default), 'en' for English. | no |
| table_id | Yes | The table ID (e.g. '07459', '11342'). |