Skip to main content
Glama
io.github.rwestergren/cronometer-api-mcp

io.github.rwestergren/cronometer-api-mcp

by rwestergren

update_food_entry

Idempotent

Modify a logged food entry's grams, measure, or meal by entry ID; pass only the fields to change after finding the ID with get_food_log.

Instructions

Change a logged food entry: its amount, its measure, or its meal.

Use get_food_log to find the entry ID. Pass only what should change.

Args: entry_id: Serving/entry ID from get_food_log. date: Date the entry is logged on as YYYY-MM-DD (defaults to today). grams: New weight of the serving in grams. Only supported for weight-based foods and recipes; change serving-based recipe amounts in Cronometer. measure_id: New measure/unit ID from get_food_details (the amount is still given in grams). diary_group: Move to another meal: the name of one of the account's enabled diary groups (see get_diary_groups), matched ignoring case and whitespace. "auto" is not accepted here.

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

Input Schema

NameRequiredDescriptionDefault
dateNo
gramsNo
entry_idYes
measure_idNo
diary_groupNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.8

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already grant idempotent, non-destructive, open-world semantics, so the description earns credit for going further: it discloses that this is a partial mutation where unspecified fields are left alone, that grams only applies to weight-based foods/recipes, and that diary_group matching ignores case and whitespace while rejecting 'auto'. It stops short of describing failure modes (unknown entry_id, disallowed unit) or what the response confirms.

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?

The operative sentence and the ID-lookup routing are front-loaded, then a conventional Args block attaches the remaining meaning without filler. Every line adds information an agent needs; there is no restatement of the schema or the title.

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 five-parameter partial mutation with annotations and an output schema, the definition covers the doing of the operation thoroughly — ID sourcing, unit sourcing, conditional field support, and meal-name matching. The only gap is behavior after the call, such as what happens when entry_id is stale or grams is rejected for a serving-based food.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does so: date is documented as YYYY-MM-DD defaulting to today, grams as a restricted weight-based field, measure_id as sourced from get_food_details with the amount still expressed in grams, and diary_group with its matching rules and the 'auto' exclusion. These are exactly the ambiguities an agent would otherwise get wrong.

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?

Opens with a specific verb+resource+scope: 'Change a logged food entry: its amount, its measure, or its meal.' That enumerates exactly the mutable fields, which distinguishes it cleanly from add_food_entry, remove_food_entry, and update_recipe in the sibling list without the agent needing to open any schema.

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

Usage Guidelines4/5

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

Explicitly routes the agent to get_food_log for the entry ID, get_food_details for measure_id, and get_diary_groups for diary_group, and states the partial-update rule ('Pass only what should change'). It also names a negative case — grams is unsupported for serving-based recipe amounts and must be done in Cronometer — but never says what tool to use instead when the entity is a custom food or recipe entry rather than a logged serving.

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