Run a SQL query
queryRun one read-only SQL SELECT (SQLite) over the views races, editions and
sources. Returns columns and rows; truncated is true when more rows exist
than limit (max 500). Example:
SELECT slug, name, date, city FROM races WHERE state='CO'
AND distance_category='100M' AND date >= date('now') ORDER BY date
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": {
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | No |