Skip to main content
Glama
datagovin-mcp

datagovin-mcp

by Oolrich

query_dataset

Read-onlyIdempotent

Fetch filtered rows from an India Open Government Data dataset with column selection and pagination. Retrieve exact-match records and page through results using the dataset ID.

Instructions

Fetch rows from a dataset, with exact-match filters and column selection.

Args: dataset_id: The 'id' from search_datasets. filters: Column (name or id) -> exact value, e.g. {"State/UT": "Odisha"}. columns: Columns (names or ids) to return. Defaults to all, except that very wide time-series tables return only their dimension columns (use get_series for those). limit: Rows per page (1-100). offset: Row offset for pagination; use 'next_offset' from the previous call.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "query_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
columnsNo
filtersNo
dataset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), and the description adds genuine behavioral detail beyond them: filters are exact-match only (not fuzzy/partial), the default column behavior including the special wide-time-series case, and the 1-100 page-size bound. It stops short of describing the response envelope or error behavior, but the key call-shaping traits are disclosed.

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?

Front-loaded with a one-line purpose before the Args block, and each arg line adds distinct information. The docstring format is slightly verbose but nothing is filler; only the limit default of 20 is omitted while its range is stated.

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 five-parameter read tool with no output schema, the description covers purpose, filtering semantics, column defaults, and pagination, and it points to the two sibling tools that bracket it. The main remaining gap is that column names must be discovered elsewhere (describe_dataset) and the return shape is only hinted at via next_offset.

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 carries the full burden and does so: every one of the five parameters is explained with meaning beyond its type, including a concrete filter example, the name-or-id flexibility for filters and columns, and the pagination contract of passing next_offset from the prior call. This is exactly what a 0%-coverage schema requires.

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 first sentence names a specific verb (fetch rows) and resource (dataset) plus the two defining capabilities (exact-match filters, column selection). It also implicitly distinguishes itself from search_datasets and get_series, which are named as the entry point and the wide time-series alternative respectively.

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?

Explicit routing is given for the main edge case: very wide time-series tables return only dimension columns and the agent should use get_series for those. It also tells the agent to obtain dataset_id from search_datasets. It does not say when to call describe_dataset first to discover column names, which is a real gap given filters and columns accept names or ids.

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