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

india-gov-data-mcp

Export Dataset

export_dataset

Export records from a data.gov.in resource to CSV, JSON, or Parquet while normalizing columns, canonicalizing state/district names, and returning file metadata plus citation.

Instructions

Export records from a data.gov.in resource to CSV, JSON, or Parquet.

Normalizes column names to snake_case, canonicalizes Indian state/district names, creates parent directories if needed, and returns file metadata plus an official citation.

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>",
      "output_path": "<output_path>"
    },
    "name": "export_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format: ``"csv"``, ``"json"``, or ``"parquet"`` (default ``"csv"``).csv
filtersNoColumn-value filters (original API column names).
max_rowsNoMaximum rows to fetch and export (default 2000, max 10000).
output_pathYesDestination file path (e.g. ``"exports/mandi_prices.parquet"``).
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, the description must carry the full behavioral burden, and it does disclose meaningful side effects beyond a simple read: column names are rewritten to snake_case, Indian state/district names are canonicalized, and parent directories are created. Those are non-obvious transformations an agent must know about before trusting the output. It falls short on wrapper-relevant behaviors: overwrite semantics for an existing output_path, what happens when max_rows truncates the dataset, and any network/rate constraints are unstated.

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?

Two tight sentences: the second is front-loaded with the transformations most likely to surprise an agent, and every clause carries information. No filler, no restatement of the 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?

An output schema exists, so return values need not be re-explained, and the description is appropriately scoped for a five-parameter tool. The main residual gap is write-side behavior — whether an existing file at output_path is replaced — which matters for a tool with filesystem side effects and no 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 description coverage is 100%, so every parameter (format, filters, max_rows, output_path, resource_id) is already documented in the input schema, which sets the baseline at 3. The description adds only the format list, which the schema already enumerates; it says nothing extra about how filters interact with normalization or how max_rows affects completeness.

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 states a specific verb and resource ('Export records from a data.gov.in resource') and enumerates the three output formats, so the tool's function is unambiguous. It does not, however, contrast itself with siblings like query_records or aggregate_dataset, which also read the same resources but return data inline rather than to a file.

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 output_path and format signals 'use this when you want a file on disk,' but the description never says when to prefer it over query_records or aggregate_dataset, nor does it state prerequisites such as needing a resource_id from search_catalog (only the schema says that). No exclusions or when-not-to-use guidance is given.

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