Skip to main content
Glama
rollecode

Cronometer MCP server

by rollecode

update_custom_food

Idempotent

Edit a custom food's details—name, notes, nutrients, or serving sizes—without losing existing diary entries. Corrections update nutrition for all logged entries automatically.

Instructions

Edit one of your custom foods in place, keeping its diary entries.

Only what you pass changes. Entries already logged stay attached to this same food and their nutrition follows the edit, so a typo or a wrong nutrient can be fixed without re-logging anything.

Nutrients are merged into the existing profile, so correcting one value leaves the rest alone. Call list_nutrients for the accepted names.

Args: food_id: The custom food to edit. name: New name. notes: New note text. nutrients: Nutrient name to amount per serving, merged in. measures: [{"measure_id": int, "name": str, "grams": float}] to fix a wrongly weighted measure. name and grams are each optional. Leave measure_id out to ADD a serving size instead, giving name and grams: that is how a food gets a per-piece measure such as "1 karkki" or "1 viipale" alongside plain grams, so it can be logged by the count as well as by weight.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
notesNo
food_idYes
measuresNo
nutrientsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.9.2

TDQS

A4.8/5.0
Behavior5/5

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

The description goes well beyond annotations by explaining partial updates ('Only what you pass changes'), diary linkage, nutrient merging, and the dual behavior of measures (fix vs. add). These details align with the idempotentHint and destructiveHint annotations rather than contradicting them.

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 description is detailed but each part earns its place, especially given the 0% schema coverage. Behavioral guarantees are front-loaded, and the Args section is dense but structured without wasted words.

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 5-parameter mutation tool with no schema descriptions, the description covers the essential semantics: scoping, merge behavior, measure handling, and related lookup guidance. Since an output schema exists, omitting return-value details is acceptable.

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?

The input schema has no descriptions at all, but the description fully documents all five parameters, including the ambiguous 'measures' array with optional fields and the add-vs-edit distinction. It also directs the agent to list_nutrients for accepted nutrient names.

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: 'Edit one of your custom foods in place, keeping its diary entries.' It clearly differentiates from sibling tools like add_custom_food, list_custom_foods, and retire_custom_food by emphasizing in-place editing and diary preservation.

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?

The description gives concrete use cases: fixing typos or wrong nutrients without re-logging, and correcting or adding measures. It does not explicitly state when not to use it or name alternatives like retire_custom_food, but the context is clear enough for an agent to select it appropriately.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rollecode/cronometer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server