sonic_locations
List Sonic Drive-In restaurants with ready-made store paths, filter by state or city, and page through sorted results.
Instructions
List Sonic Drive-In restaurants with ready-made store paths. Returns Sonic Drive-In's restaurant listing one page at a time, each entry already split into its country, state, city and address parts plus a ready-made path value that GET /sonic/store takes -- so enumerating restaurants needs no path parsing. Filter by state and/or city to narrow the list; city slugs come from GET /sonic/directory. Results are sorted by path so paging is reproducible. This listing covers more store pages than GET /sonic/directory counts, since the directory counts listed restaurants while this enumerates every published store page; a filter that matches nothing returns an empty locations array with total 0, not an error. If Sonic's live store-locator service refuses the request, the list is built from Sonic's public store sitemap instead (same entry shape; it can omit stores without a published page, and source_url shows which source answered).
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": "sonic_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City slug to filter by, from /sonic/directory | |
| page | No | 1-based page number. Defaults to 1. | |
| state | No | Two-letter state or province code to filter by | |
| page_size | No | Entries per page, 1-500. Defaults to 100. |