Skip to main content
Glama

whatevr

update_log

Destructive

Correct an existing FOOD log: title, nutrition numbers, the ingredient list, meal, or time-of-day. Read get_today/get_day first — each item in recent (type "food") carries the id to pass here. Send ONLY the fields to change; values are absolute for the item as logged. Two modes, never mixed: send ingredients to REPLACE the whole list (include every ingredient you want kept — the log's totals recompute from it, so don't also send calories/macros), OR send top-level numbers to set totals directly — the existing ingredient breakdown then RESCALES proportionally so the parts always sum to the new totals (ingredient names/amounts don't change, so when the COMPOSITION changed — something added or removed — send ingredients instead). Note: ANY edit that changes a routine-created log's title or its calories — including an ingredients replacement, since totals recompute — also updates that saved routine. When logged_time changes, the log's meal may re-infer from the new hour unless you set meal explicitly. Requires a full-access token; edit one log at a time.

Input Schema

NameRequiredDescriptionDefault
mealNo
fat_gNo
titleNo
log_idYesThe item's `id` from get_today/get_day `recent` (type "food" only).
carbs_gNo
fiber_gNo
sugar_gNo
caloriesNo
protein_gNo
sodium_mgNo
ingredientsNoREPLACES the full ingredient list; totals recompute from it. Cannot be combined with top-level numeric fields.
logged_timeNoHH:MM 24h — time-of-day only; the log's DATE never changes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

None of the annotations reveal the side effects spelled out here: replacing ingredients recomputes totals, setting top-level numbers rescales the ingredient breakdown proportionally, editing a routine-created log's title or calories mutates the saved routine, and changing logged_time can re-infer the meal. These are exactly the non-obvious mutation consequences an agent needs before calling a destructive tool.

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?

The mode-selection rule and prerequisite are front-loaded and each sentence carries distinct operational information. It is dense — long sentences with parentheticals and capitalized emphasis — but little is genuinely removable given the two-mode semantics being described.

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 destructive, side-effect-heavy mutation tool with no output schema, the description covers prerequisites, the two exclusive modes, side effects on saved routines, meal re-inference, and auth requirements. Nothing an agent needs to call it correctly appears to be missing.

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 description coverage is only 25%, so the description carries the burden, and it does: it explains the mutual exclusivity of `ingredients` vs top-level numerics, that values are absolute rather than deltas, that ingredient names/amounts are preserved under rescaling, and that logged_time is time-of-day only. It doesn't cover the individual nutrient fields or their bounds, though the schema supplies those directly.

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?

The description opens with a specific verb and resource ("Correct an existing FOOD log") and immediately enumerates the editable facets (title, nutrition numbers, ingredient list, meal, time-of-day). It also scopes the tool to FOOD items, which separates it from the sibling log_exercise/log_water/log_weight tools.

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?

It gives an explicit prerequisite ("Read get_today/get_day first"), names the exact source of the id (`recent`, type "food"), and lays out the decision rule between the two modes: send `ingredients` when composition changed, top-level numbers when only totals changed. It also states the constraint "edit one log at a time" and the token requirement.

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