Seattle Query
seattle_queryRun a raw SoQL query against any Seattle open-data resource (data.seattle.gov) by its Socrata id (8-char like "tazs-3rd5"). Full SoQL: where/select/group/order/limit/offset. Use seattle_datasets to find a resource id, or seattle_recent for the common ones.
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": {
"group": "offense",
"limit": 10,
"order": "count(*) DESC",
"select": "offense, count(*)",
"_apiKey": "your-data-seattle-api-key",
"resource_id": "tazs-3rd5"
},
"name": "seattle_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | SoQL $group. | |
| limit | No | Max rows (default 100, max 5000). | |
| order | No | SoQL $order (e.g. "report_date_time DESC"). | |
| where | No | SoQL $where filter. | |
| offset | No | Row offset for paging. | |
| select | No | SoQL $select (e.g. "offense, count(*)"). | |
| _apiKey | No | Optional, your own Socrata app token for higher rate limits. Omit to use the keyless endpoint. | |
| resource_id | Yes | Socrata resource id, e.g. "tazs-3rd5" (crime data). |