Query observations from a LINDAS data cube
query_data_cubeFetch filtered observations from a LINDAS statistical cube as flat rows with human-readable labels, using dimension filters to extract specific data subsets.
Instructions
Fetch observations from a LINDAS statistical cube as flat rows keyed by dimension labels (IRI values replaced by their human labels; numbers as numbers). Optional filters map a dimension (label, IRI or IRI local name) to one value or a list of values (label, literal such as a year, or IRI), matching is exact and case-insensitive; get valid values from describe_data_cube. Returns columns (with role and unit), rows and row_count. limit default 100, max 1000 (large results are trimmed to fit 50 KB). Examples: {cube: 'https://energy.ld.admin.ch/elcom/electricityprice', filters: {'Period': '2025', 'Category': 'H4'}, limit: 50}, {cube: '', filters: {'Canton': ['Zürich', '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": {
"cube": "<cube>"
},
"name": "query_data_cube"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cube | Yes | Cube IRI from search_data_cubes | |
| lang | No | en | |
| limit | No | ||
| offset | No | Skip observations for paging (stable order; max 10000; use filters to reach deeper data) | |
| filters | No | {dimension label/IRI: value label/IRI or array of them}. Max 10 filters. | |
| include_iris | No | Also return the raw IRI of each IRI-valued cell as '<column> IRI' | |
| include_sparql | No | Return the generated SPARQL (to adapt with query_lindas) |