Table Data
table_dataFetch the time-series data rows for a Singapore statistics table. Pass resourceId ONLY if you already have a real one from a prior search_tables/table_metadata call. Otherwise pass search with the topic in plain words (e.g. "resident unemployment rate", "gdp by industry") and this tool resolves the best-matching table itself — the response carries a resolved field naming exactly which table id and title were used, so NEVER guess or reuse an id you saw in an example; it is almost certainly for a different table. Data is returned under Data with a row array of series, each containing dated columns. Filter time periods with timeFilter (comma-separated periods like "2020,2021") or between (a from,to range like "2010,2020"); page with offset/limit.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceId": "M810001"
},
"name": "table_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max number of rows to return. | |
| offset | No | Number of rows to skip (pagination). | |
| search | No | Free-text topic to resolve a resourceId automatically when you do not already have one, e.g. "resident unemployment rate". Ignored if `resourceId` is given. Equivalent to calling search_tables yourself and picking the closest title match. | |
| sortBy | No | Sort expression, e.g. "rowtext asc". | |
| between | No | Inclusive period range "from,to", e.g. "2010,2020". | |
| resourceId | No | A table id you already have (from search_tables or table_metadata). Omit this and use `search` instead when you only know the topic, not a real id — do not invent or copy one from an unrelated example. | |
| timeFilter | No | Comma-separated specific periods to return, e.g. "2020,2021,2022". | |
| seriesNoORrowNo | No | Comma-separated series/row numbers to limit which series are returned. |