Skip to main content
Glama
cyntrica

Gov Data MCP

by cyntrica

state_gis_query

Read-only

Query ArcGIS REST service layers for any US state. Run attribute and spatial queries with SQL-like where clauses to retrieve GIS data.

Instructions

Query any ArcGIS REST service layer for a US state. Supports attribute and spatial queries with SQL-like where clauses. Use state_gis_services to discover available services and layer IDs. Not all states have GIS services in the registry — use state_list to check.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax features (default 50)
stateYesTwo-letter state code
whereNoSQL where clause, e.g. "COUNTY = 'MONTGOMERY'"
serviceYesService path, e.g. 'PlanningCadastre/MD_ParcelBoundaries/MapServer'
layer_idNoLayer index (default 0)
out_fieldsNoComma-separated field names (default '*')
return_geometryNoInclude geometry (default false)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=true, so the description doesn't need to restate safety. It adds valuable context by disclosing support for attribute and spatial queries with SQL-like where clauses, and by flagging that not all states have GIS services. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, each earning its place: first states core function, second elaborates query capabilities, third points to discovery, fourth warns about state coverage. No redundant wording or padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 7 parameters and no output schema, the description covers the main workflow (discover, check state, query) but omits details about return format, pagination via limit, or handling of the geometry parameter. The reference to sibling tools partially compensates for this gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description enriches parameter understanding by linking 'where' to SQL-like clauses and explaining that service and layer_id can be discovered via state_gis_services. This goes beyond the schema's field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Query any ArcGIS REST service layer for a US state', which clearly states the verb (query), resource (ArcGIS REST service layer), and scope (US state). It also distinguishes from siblings by referencing state_gis_services for discovery, making the tool's specific role obvious.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides actionable guidance: use state_gis_services to discover services and layer IDs, and use state_list to check whether a state has GIS services. This covers prerequisites but stops short of explicitly contrasting with other query tools like state_gis_parcels or stating when NOT to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyntrica/gov-data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server