Inspect Schema
inspect_schemaInspect 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
| Name | Required | Description | Default |
|---|---|---|---|
| resource_id | Yes | The ``resource_id`` UUID from ``search_catalog`` results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||