build_key
Build a correctly formatted SDMX key from dimension values, ordering dimensions per dataflow structure. Leave unspecified dimensions empty to request all values, preparing valid keys for data URL creation.
Instructions
Build a properly formatted SDMX key from dimension values.
This helper tool constructs the key string with dimensions in the correct order
according to the dataflow structure. Unspecified dimensions are left empty
(meaning "all values").
Use this before build_data_url() to ensure your key has the correct format.
Args:
dataflow_id: The dataflow identifier
filters: Optional dict mapping dimension IDs to values
agency_id: The agency (uses session endpoint if not specified)
endpoint: Optional endpoint key (e.g. "FBOS", "ECB") to target a
specific provider for this call only. Defaults to the session's
current endpoint.
Returns:
Structured result with the constructed key and usage information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | ||
| endpoint | No | ||
| agency_id | No | ||
| dataflow_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Constructed SDMX key | |
| usage | Yes | How to use this key | |
| version | Yes | Resolved dataflow version | |
| dataflow_id | Yes | Dataflow identifier | |
| key_template | Yes | Template showing dimension positions | |
| dimensions_used | Yes | Dimension values that were specified | |
| dimensions_wildcard | Yes | Dimensions left as wildcard (all values) |