GEG Gastro school meals (unofficial)

v1.2.0
io.github.udondan/geg-gastro Checked 2 days ago Published 4 days ago

Menu, orders, balance and invoices of a GEG Gastro school meal account; orders and cancels meals

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

geg_account Balance and children

Returns the current balance of the account and its children (participants), each with number, name, facility, group, birthday and allergies. Call it first to learn the children and the balance; the other tools take the number or a part of the name of a child. For how the balance changed, use geg_ledger. Takes no input. An account without children fails with unexpected_page.

geg_cancel Cancel a meal

Cancels the meal ordered for a child on a day, before the cancellation deadline; the price goes back to the balance. Ask the user first. After the order deadline a cancelled meal cannot be ordered again: then the tool fails with final_cancel_requires_confirmation unless allow_final is true. Returns the meal, the change of the balance and the new balance.

ParameterTypeDescription
child *stringThe child: its number, its full name or a part of the name, in any case. A part that fits several children fails with `ambiguous_child`, one that fits none with `unknown_child`; both list the children…
date *stringThe day, like `2026-12-01` (Europe/Berlin), with an ordered meal; without one the tool fails with `not_ordered`.
allow_finalbooleanCancel also when the meal cannot be ordered again afterwards. Only after the user agreed to that.

geg_invoices Invoices

Lists the invoices, newest first: file name, date and amount. Use it for the invoice documents of the portal; for the single bookings behind the balance, use geg_ledger. Takes no input. The tool cannot download an invoice: the CLI does that with `geg-gastro invoices download <name>`.

geg_ledger Bookings of the balance

Lists the bookings of the balance in a period, by default the last 30 days, newest first: time, amount, kind (meal, payment, other), the text and for a meal its line, day and child. Also returns the current balance. Use it to explain the balance: payments, charged and refunded meals. For the balance alone, use geg_account; for the monthly invoices as documents, geg_invoices. A period longer than 366 days or ending before it starts fails with invalid_input; split longer periods.

ParameterTypeDescription
fromstring | nullThe first day, like `2026-11-01`, included, at most 366 days before `to`. Default 30 days before `to`. A start behind the newest 50 pages of bookings fails with `invalid_input`: choose a later one.
tostring | nullThe last day, included. Default today (Europe/Berlin).

geg_menu Menu of a week

Returns the menu of one week for each child: every day with its menu lines (description, allergens), whether a line is ordered, whether it can still be ordered or cancelled and until when, and why a day is closed. Use it before geg_order or geg_cancel to see the lines and deadlines of a day; for the ordered meals over a longer period, use geg_orders. `weeks` lists the weeks the portal offers; a week without a menu has a `note`.

ParameterTypeDescription
childstring | nullOnly this child: its number, its full name or a part of the name, in any case. A part that fits several children fails with `ambiguous_child`, one that fits none with `unknown_child`; both list the ch…
datestring | nullOnly this day, like `2026-12-01` (Europe/Berlin); without `week`, the tool reads its week. A day outside `week` leaves the days empty.
weekstring | nullThe ISO week, like `2026-W50`. Default: the week of `date`, else the first week the portal offers.

geg_order Order a meal

Orders one meal of a menu line for a child on a day, which costs the price of the meal: it is taken from the balance. Ask the user first, naming the child, the day and the line; check them with geg_menu. A child gets one meal a day, so calling it again does not order twice: it fails with day_already_ordered, and to change the meal use geg_cancel first. A closed day or a day without a menu fails with no_menu, an order after the deadline with deadline_passed, and nothing is sent then. Returns the meal, the change of the balance and the new balance.

ParameterTypeDescription
child *stringThe child: its number, its full name or a part of the name, in any case. A part that fits several children fails with `ambiguous_child`, one that fits none with `unknown_child`; both list the children…
date *stringThe day, like `2026-12-01` (Europe/Berlin): an open day before the order deadline.
line *stringThe menu line, like `Veggie`: its name or a part of it, in any case, among the lines that can be ordered on the day. A part that fits several lines or none fails with `unknown_menu`, which lists the l…

geg_orders Ordered meals

Lists the ordered meals of each child in a period, by default from today for 30 days: day, menu line, description and quantity. Use it to see what is ordered over days or weeks, also in the past; for what can still be ordered or cancelled and the deadlines, use geg_menu, and for what the meals cost, geg_ledger. A period longer than 366 days or ending before it starts fails with invalid_input; split longer periods.

ParameterTypeDescription
childstring | nullOnly this child: its number, its full name or a part of the name, in any case. A part that fits several children fails with `ambiguous_child`, one that fits none with `unknown_child`.
fromstring | nullThe first day, like `2026-12-01`, included. Default today (Europe/Berlin); an earlier day lists past meals.
tostring | nullThe last day, included, at most 366 days after `from`. Default 30 days after `from`.

geg_subscription Standing orders

Returns the standing order of each child: the weekdays each menu line is ordered on automatically, and since when. Use it to tell which meals come from the standing order; for the meals actually ordered on given days, use geg_orders or geg_menu. Takes no input. Read only: the standing order is changed on the website, and a single meal with geg_order or geg_cancel.