get_constraints
Gets dimensions, valid code values, and Italian/English labels for an ISTAT dataset in one query, delivering the key filter before data extraction.
Instructions
Single-Call Metadata Tool: retrieves dimensions (with their position), valid constrained code values, and human-readable Italian/English labels for an ISTAT dataset in 1 query. Replaces the separate get_structure and get_codelist_description tools of earlier versions. Call this before get_data to build the key_filter.
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": {
"dataflow_id": "<dataflow_id>"
},
"name": "get_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataflow_id | Yes | ID del dataflow ISTAT, come restituito da discover_dataflows. Esempio: '609_1_DF_DCCV_URBANENV_1'. (Nelle versioni precedenti del server questo parametro si chiamava 'id_dataflow'.) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||