query_datasf
Execute SoQL queries against San Francisco's open data datasets to retrieve structured JSON results with automatic column name correction.
Instructions
Execute a SoQL (Socrata Query Language) query against a dataset. Supports auto-correction of column names. Returns query results as JSON.
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_id": "<dataset_id>",
"soql": "<soql>"
},
"name": "query_datasf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | Dataset 4x4 ID (format: xxxx-xxxx) | |
| soql | Yes | SoQL query string (1-4000 characters) | |
| auto_correct | No | Enable automatic column name correction (default: true) |