Skip to main content
Glama
india-gov-data-mcp

india-gov-data-mcp

Query Records

query_records

Fetch records from data.gov.in datasets with automatic pagination beyond the 100-row API limit, filtered by column values and normalized for consistent analysis.

Instructions

Fetch records from a data.gov.in resource with auto-pagination.

Automatically paginates past the 100-row API limit in batches, normalizes field names to snake_case, and canonicalizes Indian state/district names.

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_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersNoColumn-value filters (use **original** API column names as keys, with exact casing from ``inspect_schema``). Example: ``{"State": "Maharashtra", "Year": "2023"}``
max_rowsNoMaximum rows to return (default 500, max 5000). The tool will auto-paginate in batches of 100.
resource_idYesDataset ``resource_id`` from ``search_catalog``.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose meaningful behavior beyond the schema: transparent batching past the 100-row API limit, snake_case field-name normalization, and Indian state/district canonicalization — all things that change what the caller receives. It omits auth requirements, rate limiting, and what happens on failed pages.

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 short lines, front-loaded with the core action and followed by the behaviors that matter. Every sentence conveys a distinct fact with no filler or repetition of the name/title.

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 read-and-transform fetch tool with a full schema and an output schema, the description covers the transformations an agent could be surprised by. Remaining gaps are operational rather than semantic: no mention of auth, throttling, or error surface, which matter given the absence of annotations.

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 all three parameters are already documented in the input schema, setting the baseline at 3. The description only reinforces the pagination behavior tied to max_rows and adds no new detail about filter key casing or limits beyond what the schema states.

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?

States a specific verb and resource ('Fetch records from a data.gov.in resource') and adds the defining trait of auto-pagination. It does not explicitly say how it differs from siblings like aggregate_dataset or export_dataset, so the agent must infer the boundary from the sibling names alone.

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

Usage Guidelines3/5

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

Usage is only implied: the presence of max_rows and filters tells the reader this is the row-level retrieval path, but the description never says when to prefer it over export_dataset or aggregate_dataset, nor does it state exclusions. The pointer to inspect_schema for original column casing lives in the schema, not the description.

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