Skip to main content
Glama

Save a food

save_food
DestructiveIdempotent

Save a food to the person's own list with its figures (per 100 g by default; send per for a label's own amount and Kove rebases), or change one by its id: figures sent are merged in. It can then be logged by name. A recipe goes in with its ingredients instead, plus servings and cooked_weight: Kove looks each one up and counts it, and a recipe changes by sending its whole ingredient list back. Kove's own foods keep Kove's figures and name; only their portion can be set.

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": {
      "idempotency_key": "<idempotency_key>",
      "name": "<name>"
    },
    "name": "save_food"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoTo change one of their foods, its id (from search_foods). Omit to create a new one.
perNoThe amount the figures are for (default 100), as a label states it.
nameYesIts name; for a change, the new name.
unitNo
fat_gNo
carbs_gNo
fiber_gNo
caloriesNo
servingsNoWith ingredients: how many portions it makes.
protein_gNo
collectionNoA collection to file it in, made if it doesn't exist.
source_urlNoThe link the recipe came from: the same link again updates that recipe.
descriptionNoIngredients, preparation, anything about it, in markdown.
ingredientsNoFor a recipe: its ingredients. Kove looks each one up and counts the dish itself, so send no figures or `per` with them.
portion_nameNoWhat the portion is called: "pot", "slice".
cooked_weightNoWith ingredients: the dish's weight once cooked, in grams: theirs if weighed, else your estimate.
portion_amountNoIts usual portion in its unit, when it has one (a 150 g pot).
idempotency_keyYesA new random string per write (8-128 of A-Z a-z 0-9 - _ . :); send the same one to retry, never a new one.
cooked_weight_estimatedNoTrue when cooked_weight is your estimate.

Output Schema

NameRequiredDescriptionDefault
dateYes
writtenYes
replayedNo
write_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the destructiveHint=true and idempotentHint=true annotations, it discloses that sent figures are merged on change, that recipe changes require sending the whole ingredient list back, and that Kove-owned foods retain their figures and name with only portion settable. These are meaningful mutation semantics that the annotations alone do not convey.

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 front-loaded with the core action and uses compact parenthetical asides to cover defaults, recipe behavior, and Kove-food restrictions. Some sentences are dense and could be split, but nothing is redundant.

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

Completeness4/5

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

For a 19-parameter create-or-update tool with an output schema, it covers the high-risk behaviors: merge semantics, recipe replacement requirements, and Kove-owned record restrictions. It omits ownership/auth checks and error behavior, but those are minor relative to the structured metadata already supplied.

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?

The description adds real meaning beyond the 68%-covered schema: per defaults to 100 and Kove rebases label amounts, id switches between create and change, ingredients replace the figure fields for recipes, and Kove's own foods only accept portion changes. It does not explain the many nutrient fields, but the schema largely handles those.

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 gives a specific verb and resource (save/change a food) and covers create-by-omitting-id versus change-by-id, plus recipe handling. However, it never mentions the sibling edit_food, so the boundary between changing a food here and editing one there is left unclear.

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?

It explains internal modes—omit id to create, send id to change, use ingredients plus servings/cooked_weight for recipes, and only portion for Kove's own foods. It does not say when to prefer save_food's update path over edit_food, or when to search first versus save directly.

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.