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

india-gov-data-mcp

Find Filter Values

find_filter_values

Discover exact, case-sensitive dataset column filter values before querying or aggregating, preventing failed matches caused by parenthetical suffixes or non-obvious casing.

Instructions

Discover exact, case-sensitive filter values for a dataset column.

api.data.gov.in requires exact filter strings (for example "Bengal Gram(Gram)(Whole)" instead of "Gram", or "Kozhikode(Calicut)" instead of "Kozhikode"). Use this tool before query_records or aggregate_dataset whenever a filter value might have parenthetical suffixes or non-obvious casing.

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>",
      "column": "<column>",
      "search_term": "<search_term>"
    },
    "name": "find_filter_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnYesColumn name to inspect (original API name or ``snake_case``).
resource_idYesDataset ``resource_id`` from ``search_catalog``.
sample_sizeNoNumber of rows to sample from the dataset (default 300, max 2000).
search_termYesPartial or approximate value to search for (e.g. ``"Gram"``).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description must disclose behavior itself. It usefully explains the exact-match, case-sensitive filtering requirement and gives examples of non-obvious values, but it does not state that the tool samples rows, whether results are limited by sample size, or any read-only/safety characteristics.

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 with the purpose, followed by a concrete API-specific rationale and then precise usage guidance. Every sentence contributes useful information with no redundant 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 definition covers the core purpose, trigger conditions, and exact-match caveat, and an output schema exists so return values need not be explained. It could be slightly more complete by noting that results depend on sampled rows or by clarifying read-only behavior, but it is sufficient for correct invocation.

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 input schema already documents all four parameters in detail. The description adds contextual meaning to search_term through examples like 'Gram', but does not add syntax or constraints beyond what the schema provides.

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: 'Discover exact, case-sensitive filter values for a dataset column.' It also distinguishes the tool from query_records and aggregate_dataset by positioning it as a prerequisite discovery step when exact filter strings are uncertain.

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

Usage Guidelines5/5

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

It explicitly instructs the agent to use this tool before query_records or aggregate_dataset whenever a filter value might have parenthetical suffixes or non-obvious casing. This gives both a clear triggering condition and named alternatives, leaving little ambiguity about when to call it.

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