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

india-gov-data-mcp

Join On Geography

join_on_geography

Join two data.gov.in datasets on normalized Indian state or district names, resolving variants like Bangalore/Bengaluru so you can merge AQI with health or crop with rainfall data.

Instructions

Join two data.gov.in datasets on normalized Indian geography.

Normalizes state or district names in both datasets (e.g. maps "Bangalore" → "Bengaluru", "Orissa" → "Odisha") so they match, then performs an inner join via DuckDB.

Use case: Combine AQI data with health data by state, or merge crop production with rainfall data by district.

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_a": "<resource_id_a>",
      "resource_id_b": "<resource_id_b>"
    },
    "name": "join_on_geography"
  }
}

Input Schema

NameRequiredDescriptionDefault
filters_aNoFilters for dataset A (original API column names).
filters_bNoFilters for dataset B (original API column names).
geo_levelNo``"state"`` or ``"district"`` (default ``"state"``).state
resource_id_aYesFirst dataset ``resource_id``.
resource_id_bYesSecond dataset ``resource_id``.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses geography-name normalization with examples and specifies an inner join via DuckDB, but it does not explain how join columns are detected, what happens when datasets lack matching geography columns, or authorization/rate-limit expectations.

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?

The description is front-loaded, concise, and well structured. It uses a short purpose statement, clarifies normalization with examples, names the join implementation, and ends with compact use cases without unnecessary wording.

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?

The tool has a rich schema and an output schema, so return-value details need not be in the description. The description covers the core normalization and inner-join behavior plus typical use cases, though it leaves some operational gaps around column detection and no-match handling.

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 the schema already documents all five parameters. The description reinforces the meaning of state/district geography normalization and gives a use-case context, but it adds no parameter-specific syntax or constraints beyond the schema.

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 states a specific verb and resource: join two data.gov.in datasets on normalized Indian geography. It names the normalization behavior and the join mechanism (DuckDB inner join), making the tool's function distinct from query, aggregate, or export siblings.

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?

It provides concrete when-to-use examples, such as combining AQI with health data by state or crop production with rainfall data by district. It does not explicitly state when not to use this tool or name alternatives, but the usage context is clear.

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