inspect_dataflow
Check a dataflow's filterable components, available codes, and size before retrieving data to avoid truncated queries.
Instructions
Inspect a dataflow's components, available codes and size.
Call this before get_data. It answers three questions: what can I filter on, which codes actually have data, and is this small enough to retrieve?
If you only need to know whether data exist for some subset, pass filters and stop here rather than going on to get_data.
Returns: Components grouped by role, availability-backed codes, and size signals with a warning when retrieval would truncate.
Raises: ToolError: If the dataflow is not found or the request fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Dataflow reference in agency:id(version) form, such as 'BIS:WS_CBS_PUB(1.0)'. Take this from the ref field of search_dataflows. A full SDMX URN also works. | |
| filters | No | Optional filter scoping availability to a subset, such as "L_REP_CTY = 'CH' AND FREQ = 'Q'". AND only, never OR; use IN ('A', 'B') for several values of one component. Supplying this narrows the reported codes and counts to what remains available. | |
| service | No | Service name or SDMX-REST v2 base URL. | |
| find_code | No | Optional code value such as 'CH'. Reports every component whose available codes contain it, and the role each plays. Use this before filtering on a country: the same code often appears in several dimensions with different meanings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The resolved dataflow reference. | |
| name | No | ||
| service | Yes | ||
| measures | Yes | ||
| next_step | Yes | ||
| obs_count | No | Observation count. Frequently null - BIS does not report it. Use series_count as the size signal when null. | |
| attributes | Yes | ||
| dimensions | Yes | ||
| description | No | ||
| series_count | No | ||
| size_warning | No | Present when the scope is large enough that get_data would truncate. Narrow the filter first. | |
| code_locations | No | Populated when find_code was supplied: every component whose available codes contain that value, with the role each plays. More than one entry means the value is ambiguous - on BIS consolidated banking 'CH' appears as reporting country, counterparty country and bank type - so choose the intended role before filtering. | |
| filter_applied | No | The filter used to scope availability, echoed verbatim. Null means availability covers the whole dataflow. | |
| availability_note | Yes |