Skip to main content
Glama

Set menu item availability

biz_set_item_availability
Idempotent

Marks one item on a business menu as sold out for today, or puts it back on. Anyone reading that menu afterwards sees the change, and an order for a sold-out item is refused. Needs a personal connector token (a shared token reads but changes nothing), business, soldOut, and the item as itemId from biz_menu or as itemName. Only a business the person is seated on as an owner or a manager can be changed, checked against live records on every call. An itemName is matched against that menu, and a name that fits more than one item is refused with the names it fits, because several items on one menu can share a word. It works in two steps: a call without confirm returns a preview of which item will change and what it will read as, plus a confirmToken, and changes nothing; a call with confirm true and that token makes the change. The token lasts two minutes, works once, and stops working if any argument changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdNoThe menu item id, as biz_menu returned it. An id matches exactly one item.
confirmNoAbsent on the first call, which changes nothing. true, together with confirmToken, makes the change.
soldOutYestrue to mark the item sold out for today, false to put it back on the menu.
businessYesWhich business, by name or by id, as biz_menu returned it. Only a business the person is seated on can be changed.
itemNameNoThe item by name, when no id is at hand. Matched against that menu; a name that fits more than one item is refused with the names it fits.
requestIdNoAn id for this change chosen by the caller, at least 8 characters. A repeat with the same id and the same arguments returns the first result without changing anything a second time.
confirmTokenNoThe token the first call returned. Needed when confirm is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / business / description
      Previous value: -"Which business, BY NAME OR BY ID, exactly as biz_menu returned it. Only a business you are seated on can be changed."New value: +"Which business, by name or by id, as biz_menu returned it. Only a business the person is seated on can be changed."
    • changedInput schema / properties / confirm / description
      Previous value: -"Leave this out on the first call. Pass true with confirmToken to commit."New value: +"Absent on the first call, which changes nothing. true, together with confirmToken, makes the change."
    • changedInput schema / properties / confirmToken / description
      Previous value: -"The token the preview returned. Required when confirm is true."New value: +"The token the first call returned. Needed when confirm is true."
    • changedInput schema / properties / itemId / description
      Previous value: -"The menu item id, exactly as biz_menu returned it. Prefer it whenever you have one: an id can never be ambiguous."New value: +"The menu item id, as biz_menu returned it. An id matches exactly one item."
    • changedInput schema / properties / itemName / description
      Previous value: -"The item by name, when you have no id. Matched against that menu. A name that fits more than one item is refused with the names it fits, never guessed at."New value: +"The item by name, when no id is at hand. Matched against that menu; a name that fits more than one item is refused with the names it fits."
    • changedInput schema / properties / requestId / description
      Previous value: -"Your own id for this change, at least 8 characters. Sending the same one twice with the same arguments returns the first result instead of changing anything a second time."New value: +"An id for this change chosen by the caller, at least 8 characters. A repeat with the same id and the same arguments returns the first result without changing anything a second time."
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources