Skip to main content
Glama

Splot: Food Journal

Log or plan meal

create_meal

Save a meal the person asked to log or plan. Find each food with list_foods first and pass a match as food (its library and key); use newFood only when nothing matches, never for a product the catalogue has. If the food or portion is unclear, ask one short question first (for example: chicken or bean burrito, and one or two?), without asking again for what the person already said. Use state logged for food eaten, and planned only for a plan the person asked to save, since suggestions alone are not a request. To log a meal that was planned, use update_meal instead of creating another. For planning, read get_targets first and respect the diet, dislikes and allergies the person mentions. Pass photos the person attached as photos. Say the meal is saved only after this returns its id; after an error or timeout, check list_meals for that day before trying again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoA name for the meal as a whole, such as Sunday brunch
itemsYesThe foods in the meal, each with its portion
notesNoNotes the person wants kept with the meal
stateNologged for food eaten; planned only for a plan the person asked to savelogged
imagesNoPhotos already saved on this record to keep, or public https image links. New photos from the conversation go in photos, never here.
photosNoPhotos the person attached in this conversation to keep with this record: pass the attachments themselves, never file paths
eatenAtYesWhen it was eaten, or for a plan when it will be, with its UTC offset
timezoneYesThe IANA timezone where the meal is eaten, such as America/New_York

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
dayYes
nameYes
itemsYes
notesYes
stateYes
imagesYes
eatenAtYes
categoryYes
timezoneYes
nutritionYes

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