Skip to main content
Glama

Marrow Health: Apple Health for your AI

Log a meal

log_meal

Add foods to the user's Marrow food diary. Marrow on their phone applies the entry (labelled as added by you) and writes it to Apple Health. One call per meal. Every item needs calories and macros for the portion actually eaten: use label or database values when you have them, otherwise your best estimate, and tell the user which. Check nutrition_log first when they say 'the same as yesterday'. Returns an id that undo_entry accepts and the entry_ids of its foods. To correct one food later use edit_entry, to remove it delete_entry.

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": {
      "items": "<items>"
    },
    "name": "log_meal"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoYYYY-MM-DD on the user's phone (default today, up to 30 days back, never the future)
mealNoDefault: by time of day
timeNoHH:MM, 24 hour, phone time (optional)
itemsYes
idempotency_keyNoOptional. The same key never logs twice. Use a new one to log an identical entry again on purpose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations cover the safety profile (non-destructive, non-idempotent, closed-world), and the description adds real behavior beyond them: the entry is applied on the user's phone, labelled as agent-added, and mirrored to Apple Health, plus one-call-per-meal and what the return id is for. It does not discuss failures, partial writes, or the 20-item cap, which the schema carries.

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 purpose, then follows with sourcing rules and sibling routing; nearly every sentence carries actionable information. It is dense but a little stacked, with sibling guidance interleaved rather than grouped.

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?

With no output schema, the description usefully states the return (an undoable id plus food entry_ids). Combined with annotation coverage and strong schema descriptions, an agent has enough to call it correctly; only error/partial-failure behavior is left unstated.

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 already 80%, but the description adds the meaningful sourcing rule: use label or database values when available, otherwise estimate, and tell the user which was used. That is decision-relevant guidance the schema cannot express.

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?

States a specific verb and resource ('Add foods to the user's Marrow food diary') and explicitly distinguishes itself from nutrition_log, edit_entry, delete_entry and undo_entry. An agent can tell which sibling to pick without opening a schema.

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 concrete routing rules: check nutrition_log first for 'the same as yesterday', use edit_entry to correct a single food, delete_entry to remove, and one call per meal. Both when-to-use and when-to-use-something-else are covered.

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