Query Records
query_recordsFetch records from data.gov.in datasets with automatic pagination beyond the 100-row API limit, filtered by column values and normalized for consistent analysis.
Instructions
Fetch records from a data.gov.in resource with auto-pagination.
Automatically paginates past the 100-row API limit in batches,
normalizes field names to snake_case, and canonicalizes Indian
state/district names.
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": "query_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | Column-value filters (use **original** API column names as keys, with exact casing from ``inspect_schema``). Example: ``{"State": "Maharashtra", "Year": "2023"}`` | |
| max_rows | No | Maximum rows to return (default 500, max 5000). The tool will auto-paginate in batches of 100. | |
| resource_id | Yes | Dataset ``resource_id`` from ``search_catalog``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||