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

india-gov-data-mcp

Inspect Schema

inspect_schema

Inspect a data.gov.in resource schema before querying: fetch sample rows, infer column types, and view distinct categorical values so filters use exact names, casing, and spelling.

Instructions

Inspect the schema of a data.gov.in resource before querying it.

Fetches 5 sample rows, infers each column's type (numeric, date, state, district, or text), and shows distinct sample values for categorical columns so you know the exact casing and spelling to use in filters.

Always call this before query_records or aggregate_dataset to avoid guessing column names or filter values.

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

Input Schema

NameRequiredDescriptionDefault
resource_idYesThe ``resource_id`` UUID from ``search_catalog`` results.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does most of the work: it discloses the concrete side effect of fetching 5 sample rows, the type-inference taxonomy (numeric, date, state, district, text), and the distinct-value sampling for categoricals. It stops short of stating cost, latency, or that the operation is purely read-only, which are minor gaps for a low-complexity tool.

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?

Front-loaded purpose sentence, then what it returns, then the call-order rule in bold. Every sentence adds new information; nothing restates the tool title.

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?

The tool is simple (one required param) and an output schema exists, so the description need not explain return shapes. Combined with the explicit workflow ordering versus query_records and aggregate_dataset, an agent has everything needed to invoke it at the right time.

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?

Only one parameter and schema description coverage is 100%; the schema already explains that resource_id is the UUID from search_catalog results. The description adds no format, provenance, or validation detail beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ('Inspect the schema of a data.gov.in resource') and immediately differentiates itself from siblings by positioning the tool as a pre-query prerequisite rather than a query tool itself. A reader knows exactly what it produces: sample rows, inferred column types, and distinct categorical values.

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?

Gives an explicit, imperative when-to-use rule: 'Always call this before query_records or aggregate_dataset.' It names the alternative tools and the failure mode it prevents ('to avoid guessing column names or filter values'), leaving no inference required.

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