Preview rows of a data file
read_resourceReads rows from CSV, JSON, or XLSX resources on data.gov.cy with paging, column selection, and simple filters so you can query Cyprus open data tables directly.
Instructions
Read rows from a CSV, JSON or XLSX resource on data.gov.cy, with paging, column selection and simple filters. Files up to 50 MB; at most 200 rows per call. Web services (api, wms, esri rest) cannot be read here; their page_url is returned instead. Cells are returned as published (often Greek).
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": {
"resource": "<resource>"
},
"name": "read_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to return, default 20, max 200. | |
| sheet | No | XLSX only: sheet name. Default the first sheet. | |
| filter | No | Keep rows where each given column contains the text, e.g. {"DISTRICT": "Λεμεσός"}. Case and accent insensitive. | |
| offset | No | Skip this many (filtered) rows, for paging. | |
| columns | No | Only return these columns (names as in the file; partial, case and accent insensitive). | |
| resource | Yes | Resource id from get_dataset, or the resource download_url. |