List branches
list_branchesList a library system's branches with address, phone, today's hours, and open-now status. Filter by name or open state, and sort results by distance from given coordinates.
Instructions
List a library system's branches with address, phone, today's hours and whether each is open right now. Pass coordinates to sort by distance. Use get_branch for a branch's full weekly hours and services.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| library | No | Library system id such as "tpl" (Toronto), "vpl" (Vancouver), "chipublib" (Chicago). Get it from find_library. A city or library name also works. | |
| open_now | No | Only branches that are open right now. | |
| name_contains | No | Only branches whose name contains this text. | |
| near_latitude | No | Sort by distance from this point (requires near_longitude). | |
| near_longitude | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Branches in the system matching the filters. | |
| source | Yes | Provenance of the data. | |
| library | Yes | ||
| branches | Yes |