Find fish and chips
find_fish_and_chipsFinds fish and chip shops (chippies) near a location, nearest first. Searches near lat and lng; a place, town, landmark or postcode the user names needs converting to approximate latitude/longitude first. query only matches text in a shop's name or address. With no lat/lng or query, the user's configured default location is used if they set one; with no location at all, the result is an error saying a location is needed. open_now limits the results to shops known to be open right now. Results can include a note about a shop. Links to batteredeconomy.com go to chippynear.me's sister site, which shares its listings.
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": "find_fish_and_chips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude of the place to search near, e.g. 51.296. Supply together with lng. | |
| lng | No | Longitude of the place to search near, e.g. -0.331. Supply together with lat. | |
| limit | No | Maximum number of shops to return: default 5, at most 20. | |
| query | No | Optional text that must appear in a shop's name, address or town, e.g. "codfather". | |
| open_now | No | Only return shops known to be open right now. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of shops returned. | |
| query | Yes | Text the search matched against shop names and addresses, if any. | |
| shops | Yes | ||
| message | Yes | Short explanation, e.g. when nothing was found. | |
| receiptTip | Yes | Pass on once per conversation: how to add this shop's price by scanning a receipt. Null when no shops were found. | |
| addShopLink | No | Set with coverageTip: a link template to Battered Economy's submit form, pre-filled. Only for a chippy you found in a real source such as a web search, never invent one: replace {name} and {address} with its URL-encoded name and address and give the user the link. The user checks the form and sends it. Null when coverageTip is null. | |
| coverageTip | Yes | Pass on once per conversation: listings near here may be incomplete, and how to add a missing chippy. Null when shops are close by, or for text searches. | |
| searchedFrom | Yes | Where the search was centred, when it had a point. | |
| unknownHoursLeftOut | Yes | With open_now, how many nearby shops were left out because their hours are unknown. |