Dc Query
dc_queryQuery any Washington, DC ArcGIS layer by service path + layer id. Full ArcGIS query: where, out_fields, order_by, limit. Use dc_layers to find a service/layer, or dc_recent for the common ones. Epoch dates are converted to ISO.
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": {
"layer": 0,
"limit": 50,
"where": "OFFENSE='THEFT/OTHER'",
"service": "crime"
},
"name": "dc_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Layer id within the service (from dc_layers), e.g. 39. | |
| limit | No | Max rows (default 100, max 2000). | |
| where | No | ArcGIS SQL where (default "1=1"). | |
| service | Yes | ArcGIS service path, e.g. "FEEDS/MPD/MapServer" (or a short name: crime|service_requests|permits). | |
| order_by | No | Sort clause, e.g. "REPORT_DAT DESC". | |
| out_fields | No | Comma-separated fields, or "*" (default). |