Read one of the site’s data tables
query_datasetThe rows of one table behind this site’s data page, oldest first, with each column’s type and meaning. Filter by date with from and to (YYYY-MM-DD), which apply to the table’s date column; if more rows match than the limit, the most recent are returned. Daily and weekly tables keep about a year.
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": {
"dataset": "<dataset>"
},
"name": "query_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The latest date to include | |
| from | No | The earliest date to include | |
| limit | No | How many rows to return at most, 1 to 500 | |
| dataset | Yes | Which table, as get_site_stats lists them |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Where /data shows it | |
| rows | Yes | The rows, oldest first | |
| grain | Yes | One row per | |
| notes | Yes | What /data says about these numbers, word for word | |
| title | Yes | What it holds | |
| total | Yes | How many rows matched | |
| columns | Yes | The columns, in order | |
| dataset | Yes | The table | |
| returned | Yes | How many rows were returned | |
| rows_from | Yes | The first date kept; older rows are left out of the server. Null when every row is kept. | |
| truncated | Yes | Whether more rows matched than were returned | |
| date_column | Yes | The column from and to apply to, or null if the table has none | |
| description | Yes | What a row is | |
| data_through | Yes | The last day the data covers |