Skip to main content
Glama

Marrow Health: Apple Health for your AI

Food diary

nutrition_log
Read-onlyIdempotent

The meal diary: every logged food with full nutrient detail, grouped by day. Each entry has an id: pass it to edit_entry to correct the entry or to delete_entry to remove it. Entries an AI added that the phone has not applied yet are included and marked pending.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "nutrition_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD, inclusive (optional, default today)
daysNoDays back (default 7, max 90)
fromNoFirst day, YYYY-MM-DD on the phone's calendar (optional, used instead of days)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a safe idempotent read, so the bar is lower; the description still contributes real behavior beyond them: entries carry ids, pending (not-yet-synced-from-phone) entries are included and flagged as pending. That last point matters because an agent could otherwise double-log or distrust unconfirmed entries. It does not mention volume limits on the response or what happens when the day range is empty.

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?

Three sentences, front-loaded with the identity of the resource, then the id handoff, then the pending caveat — no filler and nothing buried. Each sentence carries distinct information the agent needs.

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 but low complexity and full schema coverage on parameters, the description covers what an agent needs: what is returned, at what granularity, with ids and a pending marker. Return-format specifics (field names, ordering within a day) are the only modest omission.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema already explains from/to/days defaults and the 90-day cap, so the description need not repeat them. It adds no meaning about which parameter wins when from and days are both supplied, so it neither compensates nor detracts.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"The meal diary: every logged food with full nutrient detail, grouped by day" states a specific resource (food diary) and its granularity (per-entry, grouped daily). It implicitly contrasts with the write-side siblings by handing ids to edit_entry/delete_entry, though it never explicitly distinguishes itself from log_meal or pending_entries, which also touch food entries.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the description tells the agent that entry ids feed edit_entry and delete_entry, which signals this is the read step before correcting or removing. There is no explicit "use this when..." clause, and no guidance on preferring pending_entries for unreviewed items, so the agent must infer the boundaries.

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