Query table
query_tableQuery any table. Returns {"<table>": [rows], "limit": N, "next_from_id": M|null, "has_more": bool}. To read every row, start with from_id=0 and re-call with from_id set to the previous next_from_id until it is null. A call without from_id returns the first page in the table's default sort with next_from_id null. filters is a flat object of field or field__op keys from describe_table (e.g. {"season_id": 2024, "day__between": "20250101,20250131"}). Requires a stat-api account: sign in when the app asks (free account at https://stat-api.com), or send an API key as Authorization: Bearer . Every returned row counts against the monthly record quota.
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": {
"league": "<league>",
"table": "<table>"
},
"name": "query_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| table | Yes | ||
| league | Yes | ||
| filters | No | field or field__op keys → scalar values; see describe_table | |
| from_id | No | keyset cursor: 0 for the first page of a full walk, then the previous next_from_id |