query_layer
Pack: arcgis-lancaster · Endpoint: https://gateway.pipeworx.io/arcgis-lancaster/mcp
Query an ArcGIS Feature Service / Map Service layer by its url (from search_datasets). SQL-like where, comma-separated out_fields, order_by, limit, offset. Returns attribute rows (and geometry). Use where=“1=1” + out_fields=”*” to sample.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | Feature/Map Service layer url ending in /FeatureServer/ |
where | string | no | SQL where clause, e.g. “STATE = ‘CA’ AND YEAR >= 2020”. Default “1=1”. |
out_fields | string | no | Comma-separated field names, or ”*” for all (default). |
order_by | string | no | e.g. “POP DESC”. |
limit | number | no | Max features (1-2000, default 50). |
offset | number | no | Pagination offset. |
Example call
curl -X POST https://gateway.pipeworx.io/arcgis-lancaster/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_layer","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"arcgis-lancaster": {
"url": "https://gateway.pipeworx.io/arcgis-lancaster/mcp"
}
}
}
See Getting Started for client-specific install steps.