Usgs Spatcat Query Attributes
usgs_spatcat_query_attributesFetch features from USGS catalog layers using a read-only WHERE filter to compare attributes, match values with IN or LIKE, and limit per-layer results.
Instructions
Query Esri MapServer/FeatureServer layers by a read-only WHERE filter.
Example: ADMIN_ST = 'NM'. Supports comparisons, IN, LIKE, IS NULL, AND/OR, and parentheses, not arbitrary SQL/functions. out_fields is '*' or comma-separated field names. max_results applies per layer, not globally. Discover field names before filtering; results may be capped.
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": {
"layer_ids": "<layer_ids>",
"where": "<where>"
},
"name": "usgs_spatcat_query_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | Yes | ||
| layer_ids | Yes | ||
| out_fields | No | * | |
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| source | Yes | ||
| warnings | No | ||
| retrieved_at | Yes |