Skip to main content
Glama

Marrow Health: Apple Health for your AI

Edit an entry

edit_entry
Destructive

Correct one entry by its id, in Marrow and Apple Health. A food entry (id from nutrition_log, the user's own or one you added): give scale to multiply it (0.5 = half), or grams for a new portion (calories and macros follow unless you also give them), or the numbers, or meal. A weight, water or body fat entry you logged (id from metric_samples or from the log call): give kg or lb, ml or oz, or body_fat_percent. Entries of the last 30 days. undo_entry with the returned id puts it back as it was.

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": "edit_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
kgNoWeight entry: the corrected weight
lbNo
mlNoWater entry: the corrected amount
ozNo
kcalNo
mealNo
fat_gNo
gramsNo
scaleNoFood: multiply portion and nutrients by this
carbs_gNo
entry_idYesThe entry's id: a food's from nutrition_log, or a weight, water or body fat entry's from metric_samples
protein_gNo
idempotency_keyNoOptional. The same key never logs twice. Use a new one to log an identical entry again on purpose.
body_fat_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / body_fat_percent
      Added value: +{
      +  "type": "number"
      +}
    • changedInput schema / properties / entry_id / description
      Previous value: -"The entry's id from nutrition_log"New value: +"The entry's id: a food's from nutrition_log, or a weight, water or body fat entry's from metric_samples"
    • addedInput schema / properties / kg
      Added value: +{
      +  "description": "Weight entry: the corrected weight",
      +  "type": "number"
      +}
    • addedInput schema / properties / lb
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / ml
      Added value: +{
      +  "description": "Water entry: the corrected amount",
      +  "type": "number"
      +}
    • addedInput schema / properties / oz
      Added value: +{
      +  "type": "number"
      +}
    • changedInput schema / properties / scale / description
      Previous value: -"Multiply portion and nutrients by this"New value: +"Food: multiply portion and nutrients by this"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With destructiveHint=true already declared, the description adds useful specifics: edits propagate to Marrow and Apple Health, only entries from the last 30 days can be corrected, and undo_entry with the returned id restores the previous state. It does not discuss idempotency behavior, permissions, or what happens when multiple conflicting correction fields are supplied.

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 description is front-loaded with the core action and then branches by entry type in a compact manner. It is dense but appropriate for a 14-parameter tool with several mutually exclusive correction modes, though the nested parentheticals make it harder to scan.

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 destructive, multi-variant editing tool with no output schema and partial schema coverage, the description gives enough information to choose the right fields and understand reversibility. It still omits the return shape beyond the id, idempotency semantics, and precedence when scale and grams or nutrient overrides are supplied together.

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 coverage is only 36%, so the description must carry meaning, and it does for the key cases: scale multiplies the food entry, grams sets a new portion with nutrients following unless overridden, and metric fields are grouped by entry type. It leaves idempotency_key unmentioned and refers to calories and macros only as 'the numbers' rather than naming kcal and the macro fields.

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 states a specific verb and resource: 'Correct one entry by its id, in Marrow and Apple Health.' It also distinguishes food entries from weight, water, and body-fat entries, so an agent can identify exactly what this tool edits.

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?

It gives clear context for using this tool: correct an existing entry identified from nutrition_log, metric_samples, or the log call, for entries in the last 30 days. It also names undo_entry as the way to reverse the edit, but does not explicitly exclude alternatives such as delete_entry or log_meal in every case.

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