Skip to main content
Glama

Update food log entry

update_food_log
DestructiveIdempotent

Edit a food entry by id (from get_food_log). If you change quantity_g without giving new nutrients, all nutrients are rescaled proportionally.

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_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFood log entry id
dateNoMove to another date YYYY-MM-DD
nameNo
fat_gNo
notesNo
carbs_gNo
fiber_gNo
sugar_gNo
caloriesNo
servingsNo
alcohol_gNo
meal_typeNo
protein_gNo
sodium_mgNo
quantity_gNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description earns credit by disclosing a non-obvious side effect not in any structured field: changing quantity_g without new nutrient values rescales all nutrients proportionally. It does not state what happens to fields omitted from the call, which is the remaining behavioral gap.

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

Conciseness5/5

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

Two short sentences, zero filler, and the identification hint is front-loaded before the quantification caveat. Nothing could be removed without losing information.

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

Completeness3/5

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

For a 15-parameter mutation with no output schema and sparse schema descriptions, the description covers the trickiest interaction (quantity-driven rescaling) but leaves the general update contract unstated. An agent still has to guess whether unspecified fields are preserved or cleared.

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 13% across 15 parameters, so the description must carry meaning, and it explains just one (quantity_g) plus the id's provenance. The other 13 numeric/enum fields (calories, protein_g, meal_type, servings, date, etc.) have no semantic guidance in either place beyond bare min/max bounds.

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?

"Edit a food entry by id" gives a specific verb (edit) plus resource (food entry) and even names where the id comes from (get_food_log), which disambiguates it from the log_* creation siblings. It stops short of explicitly contrasting with delete_food_log or log_food, but the intent is unambiguous.

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?

Usage is implied rather than stated: the parenthetical "from get_food_log" tells the agent to fetch the id first, which is a useful precondition. There is no explicit when-not guidance (e.g., use log_food to create a new entry instead) and no mention of partial-update expectations.

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