grabfood_chain
Fetch a GrabFood chain's published menu items and branches by slug, with strict slug validation to block malformed requests.
Instructions
Get one GrabFood chain's menu items and branches. Returns one chain's published menu items and its branches, read from the chain page's own __NEXT_DATA__ payload: chain name, heading, long description, banner image, page title, meta description, every menu item (id, title, description, image, cost string) and every branch (merchant id, name, location name, address, image, offer name). chain_key is validated as a strict slug before any request, so a value carrying path separators or percent-encoding is rejected rather than reshaping the upstream URL. GrabFood publishes no chain index -- the site's own /chains route 404s and a country page's footer links only 10-20 featured chains -- so only the chains those footer links carry are guaranteed; an unknown key is a 404, never an empty success.
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": {
"chain_key": "<chain_key>"
},
"name": "grabfood_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language path segment, e.g. en. Defaults to en. | |
| country | No | Market path segment: sg, id, ph, my, vn, mm or kh (other values are a 400). Defaults to sg. | |
| chain_key | Yes | GrabFood chain slug, e.g. burger-king-delivery |