Skip to main content
Glama
beenthatt-rehman

datagovin-mcp

query_dataset

Fetch live rows from an India Open Government Data dataset by resource ID, with optional field filters, selected columns, and pagination. Use it to retrieve specific records from a known dataset.

Instructions

Pull actual rows from a data.gov.in dataset, optionally filtered.

Fetches live data using the user's API key. limit is capped at 100 rows per call (the upstream maximum); page through larger result sets with offset. If a call returns zero rows but a positive total, you have paged past the end.

IMPORTANT: filter field names are case-sensitive and must match a field id from get_dataset_info exactly. If a filter returns nothing unexpectedly, check the capitalisation of the field name first.

Args: resource_id: The dataset UUID (from search_datasets or the portal). filters: Optional {field_id: value} pairs, e.g. {"city": "Delhi"}. fields: Optional list of field ids to return (projection). Omit for all. limit: Rows to return, 1-100 (default 10). offset: Row offset for pagination (default 0).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
fieldsNo
offsetNo
filtersNo
resource_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure — and it delivers. It reveals the API-key auth requirement, the upstream 100-row hard cap, the paged-past-the-end signature (zero rows with positive total), and the case-sensitivity pitfall for filter fields. This is exactly the kind of non-obvious behavior an agent needs before calling.

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 structure is effective: a crisp opening sentence, then operational details, a highlighted IMPORTANT warning, and a per-parameter Args block. There is minor redundancy — the 100-row cap and the 1-100 limit are stated in both the prose and the Args — and the description runs long because it is dense with value; every sentence earns its place, but a tighter consolidation would be possible.

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

Completeness5/5

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

For a 5-parameter tool with 0% schema coverage and no annotations, the description covers everything an agent needs to call it correctly: auth requirements, pagination pitfalls, filter capitalization traps, and full parameter semantics. The output schema exists, so not explaining return values is acceptable. The description is complete enough that an agent could perform correct data pulls on the first generic run.

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

Parameters5/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 fully compensate — and it does. The Args block explains what the schema cannot: where resource_id comes from (search_datasets or portal), the exact shape of filters with a concrete example ({'city': 'Delhi'}), the semantic meaning of fields as a projection, and the effective 1-100 range for limit, given that pagination semantics only exist in the description.

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 a specific verb+resource: 'Pull actual rows from a data.gov.in dataset, optionally filtered.' This clearly differentiates it from siblings: search_datasets (discovery), list_sectors (catalog navigation), and get_dataset_info (metadata), by explicitly positioning it as the tool that retrieves the live data rows themselves.

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 gives clear contextual usage guidance: it explains pagination semantics, when a zero-row result means you have paged past the end, and the dependency flow for filters ('must match a field id from get_dataset_info exactly'). It does not explicitly state 'use X instead when...' selection criteria, so exclusions between siblings are only implied, not spelled out, so a 4 is appropriate.

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/beenthatt-rehman/datagovin-mcp'

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