Skip to main content
Glama

Splot: Food Journal

Save food or recipe

save_food
Destructive

Save a food or recipe to My foods, or with id update one of the person's foods. Search list_foods first and save a new food only when nothing matches, never for a product the catalogue already has. Each recipe ingredient is a food from list_foods or, only when nothing matches, a newFood, with a portion; the server adds up the nutrition. When changing a shared or saved food, pass copyFrom so its origin is kept: a product change goes to review and does not change the shared catalogue directly. Meals and recipes keep the version they were saved with. Pass photos the person attached as photos.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoTo update one of the person's own foods: its key from list_foods with library mine. Leave out to save a new food.
dataYesWhat the food is: its base unit, nutrition and measures, and for a recipe its ingredients and steps
nameYesThe food's name, without its brand
brandNoThe brand, for a packaged or restaurant food
photosNoPhotos the person attached in this conversation to keep with this record: pass the attachments themselves, never file paths
barcodeNoThe EAN or UPC barcode digits from the package
copyFromNoThe food this one was changed from, so its provenance is kept and a product correction can be proposed.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
dataYes
nameYes
brandYes
barcodeYes
libraryYes
versionYes
sourceKeyNo
sourceLibraryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources