Skip to main content
Glama

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; give every save its own requestId, and after an error or timeout try again with the same one.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "eatenAt": "<eatenAt>",
      "timezone": "<timezone>",
      "items": "<items>"
    },
    "name": "create_meal"
  }
}

Input 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
requestIdNoA short id of your own for this save, different for every save, such as dinner-2026-11-22. Send the same one again when trying after an error or a timeout: Splot returns what it already saved rather than saving it twice

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / requestId
      Added value: +{
      +  "description": "A short id of your own for this save, different for every save, such as dinner-2026-11-22. Send the same one again when trying after an error or a timeout: Splot returns what it already saved rather than saving it twice",
      +  "maxLength": 100,
      +  "minLength": 4,
      +  "type": "string"
      +}
  2. Changed6 schema fields changed
    • changedInput schema / properties / items / items / properties / newFood / properties / data / properties / ingredients / items / properties / newFood / properties / data / properties / ingredients / items / properties / newFood / properties / data / properties / recipe / description
      Previous value: -"For a recipe: its servings, time and steps"New value: +"For a recipe: its servings, time, steps and finished weight"
    • addedInput schema / properties / items / items / properties / newFood / properties / data / properties / ingredients / items / properties / newFood / properties / data / properties / ingredients / items / properties / newFood / properties / data / properties / recipe / properties / weight
      Added value: +{
      +  "description": "The whole recipe's weight once made, in grams, if it was weighed; without it, grams are estimated from the ingredients",
      +  "exclusiveMinimum": 0,
      +  "maximum": 999999999.999,
      +  "type": "number"
      +}
    • changedInput schema / properties / items / items / properties / newFood / properties / data / properties / ingredients / items / properties / newFood / properties / data / properties / recipe / description
      Previous value: -"For a recipe: its servings, time and steps"New value: +"For a recipe: its servings, time, steps and finished weight"
    • addedInput schema / properties / items / items / properties / newFood / properties / data / properties / ingredients / items / properties / newFood / properties / data / properties / recipe / properties / weight
      Added value: +{
      +  "description": "The whole recipe's weight once made, in grams, if it was weighed; without it, grams are estimated from the ingredients",
      +  "exclusiveMinimum": 0,
      +  "maximum": 999999999.999,
      +  "type": "number"
      +}
    • changedInput schema / properties / items / items / properties / newFood / properties / data / properties / recipe / description
      Previous value: -"For a recipe: its servings, time and steps"New value: +"For a recipe: its servings, time, steps and finished weight"
    • addedInput schema / properties / items / items / properties / newFood / properties / data / properties / recipe / properties / weight
      Added value: +{
      +  "description": "The whole recipe's weight once made, in grams, if it was weighed; without it, grams are estimated from the ingredients",
      +  "exclusiveMinimum": 0,
      +  "maximum": 999999999.999,
      +  "type": "number"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover readOnly/destructive/openWorld, while the description adds the operationally critical behaviour: do not claim the meal is saved until an id is returned, give each save its own requestId, and retry with the same requestId after an error or timeout so nothing is duplicated. It also states the planning prerequisite of reading get_targets and respecting diet, dislikes and allergies.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is one dense paragraph but front-loads the core action and keeps each sentence doing work (food resolution, clarification, state choice, sibling routing, targets, photos, save confirmation, requestId). It could have been split into short scannable lines rather than a single block.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter mutation with an output schema and annotations already declared, the description covers everything an agent needs: prerequisite reads, food resolution policy, clarification etiquette, state semantics, sibling routing, and idempotent retry behaviour.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema cannot: existing food via library+key versus newFood as a last resort, the logged/planned semantics of state, and that attached conversation photos go in photos rather than images. Missing only detailed eatenAt/timezone handling.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Save a meal the person asked to log or plan" gives a specific verb and resource plus the two states the tool supports. It also distinguishes itself from the sibling update_meal by naming the case where that tool should be used instead.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use rules are given for every branch: list_foods first, newFood only when nothing matches, ask one clarifying question if the food or portion is unclear, logged for eaten food versus planned for a requested plan, and update_meal for logging an already-planned meal. It even says what not to re-ask, which is unusually precise sequencing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources