Search branches by bank, city, state or branch name
search_branchesFind bank branches by bank code, city, state, or branch name when the IFSC code is unknown. Returns matching branch records with pagination metadata.
Instructions
Find bank branches when you have a bank, city, state or branch name but no IFSC.
Filters are ANDed. At least one of bank_code, city, state or branch is
required - an unfiltered search is rejected with INVALID_INPUT because the
dataset has ~170k rows and no endpoint supports listing all of them.
Returns ok: true with: branches (each row shaped like an ifsc_lookup
result), count (total matches upstream), has_next (true when more pages
exist), and the echoed query.
Prefer this over bank_directory when the user wants a branch; use
bank_directory when they want a bank.
Args: bank_code: 4-letter bank code filter. city: City name filter. state: ISO 3166-2 state code filter, e.g. "IN-MH". branch: Exact branch-name filter. limit: Page size, 1-100 (default 10). offset: Row offset, for pagination.
Returns: Matching branches with pagination metadata, or a structured error payload.
Example: Ask "which Kotak branches are in Gurgaon?" -> call search_branches(bank_code="KKBK", city="GURGAON", limit=5).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Optional city name exactly as the dataset spells it, e.g. 'MUMBAI', 'CHENNAI'. Case-insensitive. If no results come back, list the correct spelling with branch_places. | |
| limit | No | Rows to return, 1-100. Defaults to 10. | |
| state | No | Optional Indian state as an ISO 3166-2 code prefixed with 'IN-', e.g. 'IN-MH' for Maharashtra, 'IN-KA' Karnataka, 'IN-TN' Tamil Nadu. Not the full state name. List valid codes with branch_places. | |
| branch | No | Optional exact branch name as the dataset spells it, e.g. 'TULSIANI CHMBRS - NARIMAN PT'. Use branch_places to discover the exact spelling rather than guessing. | |
| offset | No | Row offset for paging through results. | |
| bank_code | No | Optional 4-letter bank code to filter by, e.g. 'HDFC', 'SBIN', 'KKBK'. Get one from bank_directory first. Uppercased for you. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||