Latvia Statistics Table Query
latvia-statistics.series.table_queryRun a statistical query against a Latvia statistics table — specify dimension filters to slice data by indicator, time period, region, etc. Returns JSON-stat2 format with labeled dimensions and numeric values. Always call latvia-statistics.table_metadata first to discover valid dimension codes and value codes. Example: population at start of year (INDICATOR='POP_SY'), latest year (TIME filter='top' values=['1']). Data: data.stat.gov.lv, no auth required, CC BY 4.0 (Central Statistical Bureau of Latvia).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Array of dimension filters. Each filter selects which values to include for one dimension. Example: [{code:'INDICATOR',selection:{filter:'item',values:['POP_SY']}}, {code:'ContentsCode',selection:{filter:'item',values:['IRS010']}}, {code:'TIME',selection:{filter:'top',values:['1']}}]. Response is JSON-stat2 format with dimension labels and numeric values array. | |
| table_path | Yes | Full path to the leaf table to query — same as latvia-statistics.table_metadata table_path. Example: 'POP/IR/IRS/IRS010'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |