Skip to main content
Glama
cyntrica

Gov Data MCP

by cyntrica

state_query

Read-only

Query any state's Socrata open data by its 4-character dataset ID. Use SoQL $select, $where, $order, $group, $q to filter and shape results.

Instructions

Query any state's Socrata open data dataset by its 4-character ID. Works for ANY state in the registry, even without category mappings. Find dataset IDs by browsing the state's portal (e.g., data.ny.gov, opendata.maryland.gov). Supports full SoQL: $select, $where, $order, $group, $q (full-text), $limit, $offset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoFull-text search
groupNoSoQL $group: group-by clause
limitNoMax results (default 100)
orderNoSoQL $order: sort clause
stateYesTwo-letter state code
whereNoSoQL $where: filter condition
offsetNoOffset for pagination
selectNoSoQL $select: columns to return
dataset_idYesSocrata 4-character dataset ID, e.g. 'jwfa-fdxs'
Behavior4/5

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

The annotation readOnlyHint=true already discloses the safe read nature. The description adds meaningful context: universal state coverage, no dependency on category mappings, and full SoQL support. It does not contradict annotations and provides useful behavior details beyond the structured data.

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 concise sentences, front-loaded with the primary purpose. Each sentence adds distinct value: what it does, scope flexibility, how to source dataset IDs, and SoQL capability. No unnecessary words or repetition.

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 moderate-complexity query tool with no output schema, the description covers key context: purpose, universal state applicability, dataset ID discovery, and supported SoQL features. It lacks explicit return format or examples, but those are not essential given the schema richness and read-only nature.

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

Parameters3/5

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

Schema coverage is 100% so parameters are already well-documented. The description lists SoQL parameters ($select, $where, etc.) as a group, reinforcing that they follow SoQL syntax, but does not add much meaning beyond the schema's per-parameter descriptions. Baseline 3 is appropriate.

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 states 'Query any state's Socrata open data dataset by its 4-character ID', which is a specific verb+resource+method. It also differentiates from sibling state_* tools by emphasizing it works for ANY state even without category mappings, making it the generic Socrata query tool among specialized siblings.

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 clearly implies when to use this tool: when you have a 4-character dataset ID and want to query arbitrary Socrata data. It also explains how to find dataset IDs by browsing state portals, which is actionable guidance. However, it does not explicitly name alternatives or provide when-not-to-use exclusions, so it falls short of a 5.

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