Skip to main content
Glama

query_dataset_records

Fetch validated records from a Socrata dataset using its resource ID, with optional domain and limit controls, to support open government data retrieval and analysis.

Instructions

Fetch records from a dataset with validation.

Args: resource_id: 4x4 dataset identifier limit: Max records to return domain: Socrata portal domain

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": {
      "resource_id": "<resource_id>"
    },
    "name": "query_dataset_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
domainNodata.cityofnewyork.us
resource_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden, yet only says "with validation" without defining what is validated or what happens on failure. It says nothing about authentication (e.g., Socrata app token), rate limits, or whether results are paginated, and no offset/cursor parameter exists to page beyond the limit.

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

Conciseness4/5

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

The description is short and front-loads the core purpose, with a compact Args list that is easy to scan. The phrase "with validation" is the only genuinely wasted wording because it conveys no actionable meaning.

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

Completeness3/5

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

The presence of an output schema means return values need not be described, and the tool is a simple three-parameter read. Still, for a data-fetching tool an agent needs to know about paging behavior, auth requirements, and what "validation" gates, none of which appear.

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 description coverage is 0%, so the description must compensate, and it partially does: it explains that resource_id is a "4x4 dataset identifier", limit is the max records, and domain is the Socrata portal domain. It still omits format examples, allowed ranges for limit, and how domain interacts with resource_id.

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

Purpose4/5

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

The description uses a specific verb and resource ("Fetch records from a dataset"), which is enough for an agent to grasp the operation. However, it offers no differentiation from the sibling tools fetch_dataset_schema and search_public_records, and the qualifier "with validation" is never explained.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus the sibling search_public_records, which plausibly overlaps in purpose. Nothing states preconditions, supported dataset types, or when-not to call it.

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