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

io.github.rwestergren/cronometer-api-mcp

by rwestergren

update_recipe

DestructiveIdempotent

Edit an existing Cronometer recipe by renaming it, changing ingredients or amounts, resizing its default serving, or updating notes; nutrition recalculates for logged diary entries.

Instructions

Edit a recipe you created: rename it, change its ingredients or amounts, resize its default serving, or change its notes.

Pass only what should change. A new ingredient list replaces the whole old one (use get_food_details to read the current ingredients first), and the nutrition is recalculated from it. Diary entries that already logged the recipe keep pointing at it and follow the new nutrition, as in the app. Saved meals cannot be edited with this tool.

Ingredient and serving-size edits require a weight-based recipe; serving-based recipes only support name and notes edits. If the default serving is "full recipe", set a separate default serving in Cronometer before resizing it independently of the batch.

Args: food_id: The recipe's food ID. name: New recipe name. ingredients: New list of {"food_id": int, "grams": float} objects, with an optional "measure_id", as for add_recipe. serving_grams: New weight of the default serving in grams. If omitted and the serving was the whole batch, it follows the new batch. comments: New free-text recipe notes.

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": {
      "food_id": "<food_id>"
    },
    "name": "update_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
food_idYes
commentsNo
ingredientsNo
serving_gramsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.7

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only flag this as destructive/idempotent/open-world; the description goes much further by disclosing that a new ingredient list wholesale replaces the old one, that nutrition is recalculated, and that existing diary entries follow the new nutrition. It also explains the "full recipe" default-serving edge case and the weight-based vs serving-based capability split.

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?

Front-loaded with the core action, then constraints, then per-argument detail — a sensible ordering with no filler sentences. The trailing Args block necessarily restates the schema given zero description coverage, but it is mildly redundant in tone ("as in the app") and could be tighter.

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, multi-constraint mutation tool with five parameters, the description covers scope, preconditions, replacement semantics, side effects on diary entries, and per-parameter meaning. An output schema exists, so return values need not be explained.

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 coverage is 0%, so the description must carry the load, and it does: each of the five parameters is explained, including the nested ingredient shape ({food_id, grams}, optional measure_id) that the schema leaves as an untyped object. It even documents default semantics for serving_grams when omitted.

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 and resource ("Edit a recipe you created") and immediately enumerates the editable facets: name, ingredients/amounts, default serving, notes. This clearly separates it from add_recipe, delete_recipe, and update_custom_food siblings.

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?

Gives explicit partial-update guidance ("Pass only what should change"), a prerequisite workflow ("use get_food_details to read the current ingredients first"), and hard exclusions ("Saved meals cannot be edited with this tool"). It also names the condition under which most edits fail: ingredient and serving-size edits require a weight-based recipe.

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