Integrations
MunchaLunch
For parents, see the open lunch days and menus, the cart, past orders and the balance, and change the cart; for vendors, look after products, menus and pictures.

Where it works
MunchaLunch, the school lunch ordering site, at munchalunch.com.
Open the site in XataWorks Browser and the tools below appear in the page-tools list in the browser’s toolbar, ready for the agent in any chat that has the tab. There is nothing to install or switch on.
How it works
The tools call MunchaLunch’s own API from the page, with the session you are already signed in with — no key, no token, no separate sign-in. Which tools are useful depends on your account: a parent orders lunches, a vendor runs a menu. Placing an order stays with you.
Tools
Each tool with the name XataWorks shows you, the name the agent uses, and the first sentence of the description the agent reads. You do not call them yourself: ask for what you want in your own words, and the agent picks the tool. Before one runs, XataWorks asks you, according to its class; Approvals and permissions explains the question and each answer.
Reads Read only
These only look things up.
- MunchaLunch account
munchalunch_whoamiWho is signed in to MunchaLunch, the school the account is using now, and its other schools. - MunchaLunch children
munchalunch_list_childrenThe family’s children at the current school, with their grade and division. - MunchaLunch lunch days
munchalunch_list_lunch_daysThe lunch days (hot lunch, fundraisers, store) at the current school with their menus, prices in CAD and when ordering closes, and for each child what is already in the cart, already ordered, or still needs an order (needs_order). - MunchaLunch cart
munchalunch_get_cartWhat is in the MunchaLunch cart now: its total in CAD and its lines. - MunchaLunch orders
munchalunch_list_ordersPlaced MunchaLunch orders, newest first: number, status, date, total in CAD and which children. - MunchaLunch order
munchalunch_get_orderOne placed MunchaLunch order with its lines: each child, day, item, quantity, price and choices. - MunchaLunch balance
munchalunch_account_balanceWhat the family owes MunchaLunch (or holds as credit) at the current school, in CAD. - A MunchaLunch vendor
munchalunch_admin_get_vendorOne vendor of the current school in full: contact, phone, email, address, notes, active, and how many products it has. - MunchaLunch vendors
munchalunch_admin_list_vendorsThe vendors of the current school (active ones unless include_inactive). - MunchaLunch categories
munchalunch_admin_list_categoriesThe product categories of the current school. - MunchaLunch products
munchalunch_admin_list_productsThe school’s products with vendor, category, price and cost in CAD — active ones unless include_inactive; narrow by vendor or category (name or id). - MunchaLunch menus
munchalunch_admin_list_menusThe lunch days between two dates with their menus and the products on each (menu_id, product names, prices in CAD). - MunchaLunch Image Library
munchalunch_admin_list_imagesThe pictures in the current school’s Image Library: id, name, kind (item = a product picture, poster = a lunch-day poster), and how many products and posters use each. kind and name narrow the list.
Adds and changes Mutating
These change something, and the adapter declares the change additive: a create, an append, a status set.
- Change the MunchaLunch cart
munchalunch_set_cart_itemChanges the MunchaLunch cart: sets how many of one menu item one child has in the cart for one lunch day — quantity 1 or more puts it in or changes it, 0 takes it out. - Add a MunchaLunch vendor
munchalunch_admin_create_vendorAdds a vendor to the current school, with its contact details. - Create a MunchaLunch product
munchalunch_admin_create_productCreates a product for one of the school’s vendors, in one of its categories, with a price and cost in CAD. - Upload a MunchaLunch picture
munchalunch_admin_upload_imageUploads a picture to the current school’s Image Library, cropped and resized as MunchaLunch does: an item picture square (crop "center" by default, or a square box), at most 400 × 400; a poster at most 1600 wide and 2400 tall. image is a file in this chat as attachment:<file name>, or an https: address — some sites do not let other sites read their images; download one of those into this chat first.
Changes that may not be undoable Consequential
These may make changes that cannot be undone, so XataWorks treats them with the most care.
- Change a MunchaLunch vendor
munchalunch_admin_update_vendorChanges a vendor’s name, contact details, notes or active state; pass only what changes ("" clears a field). - Delete a MunchaLunch vendor
munchalunch_admin_remove_vendorDeletes a vendor from the current school. - Change a MunchaLunch product
munchalunch_admin_update_productChanges a product’s name, price, cost, description, category, hot/cold or active state; pass only what changes. - Add products to a MunchaLunch menu
munchalunch_admin_add_to_menuPuts products on a lunch day’s menu, so parents can order them on that day while it is open. - Set the picture on MunchaLunch products
munchalunch_admin_set_item_imagePuts one item picture from the Image Library beside up to 50 products in one call (image: its id or name), or takes the picture off them (image: null).
See Page tools in the user guide for how to see what a tab offers, or every integration.