Get numbers from a CYSTAT table
query_statisticsQuery a CYSTAT statistics table with variable and time filters to retrieve labelled numeric rows, defaulting unfiltered variables and recent periods for focused results.
Instructions
Query one CYSTAT table with filters per variable and get labelled rows of numbers. Filters are keyed by variable code or label; each value can be a label (case and accent insensitive, partial match allowed), a list of labels, '*' for all, and for the time variable 'latest', 'last:N' or a range like '2024M01..2026M10'. Variables you do not filter default to the first value (usually the total) and time defaults to the last 12 periods; defaults_applied lists them. At most 'limit' cells (default 200, max 1000).
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": {
"table": "<table>"
},
"name": "query_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| table | Yes | Table reference from search_statistics. | |
| filters | No | e.g. {"MONTH": "last:13", "INDICATOR": "% change - same month of previous year", "COICOP18": "General Consumer Price Index"} | |
| language | No | Table language: en (default) or el for Greek labels. |