Skip to main content
Glama

Update food entry

update_food_entry
DestructiveIdempotent

Correct any field of an existing entry by id. Only the fields passed are changed.

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": {
      "id": "<id>"
    },
    "name": "update_food_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
dateNoCalendar date YYYY-MM-DD in the user's timezone
foodNoLink the entry to a saved food, recipe or batch (id or name): its numbers are recomputed from the saved values at quantity_g
itemNo
mealNoA meal key from the user's meal plan (meals in the profile): breakfast, morning_snack, lunch, evening_snack, dinner, snack, other, or a custom key such as post_dinner. The meal's label is accepted too.
fat_gNo
notesNoRecipe or batch breakdown, how the estimate was made, uncertainty.
microsNoReplaces the whole micros object
carbs_gNo
fibre_gNo
caloriesNo
eaten_atNoHH:MM 24h in the user's timezone, when it was eaten; fills in a missing time
quantityNoThe portion only, e.g. '140 g cooked'. Recipe or batch details go in notes.
protein_gNo
quantity_gNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=true and idempotent=true, so the mutation profile is covered. The description adds one genuinely useful behavioral fact beyond them: that omitted fields are left untouched (partial update semantics). It does not warn that some fields behave destructively, such as micros replacing the whole object, nor does it mention auth or verification behavior.

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?

Two short, front-loaded sentences with no filler, and the partial-update rule is placed where an agent will read it. It is efficient but arguably under-sized for a 15-parameter destructive mutation, bordering on terse rather than complete.

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

Completeness2/5

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

With 15 parameters, nested micros, a destructive mutation flag and no output schema, this definition leaves major gaps. An agent is not told how food/item interact, what micros replacement does to existing data, or which parameters are interdependent. The description is far too thin for the tool's complexity.

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

Parameters2/5

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

Schema description coverage is only 47% across 15 parameters, so the description needs to compensate and does not. It never explains the difference between item and food, that food triggers recomputation from saved values at quantity_g, or the accepted meal keys. The only parameter-level meaning conveyed is that anything not passed stays unchanged.

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

Purpose4/5

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

The description states a specific verb and resource: correcting any field of an existing food entry, addressed by id. That is clearly distinct from creation tools like log_food or save_food. It does not explicitly differentiate itself from update_batch or explain when an entry should be deleted instead, so it stops short of a 5.

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

Usage Guidelines3/5

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

"Correct any field of an existing entry by id" implies this is the tool for fixing an already-logged entry, which is real usage signal. However, it never names the alternative paths (delete_food_entry to remove an entry, log_food to create one) or states that an id must first be obtained from get_food_log. Usage is implied rather than stated.

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