Skip to main content
Glama
health-os

health-os

log_meal

Record a meal in your food diary with meal type, time, nutrients, and symptoms to track daily intake and post-meal reactions.

Instructions

Log a meal into the diary (auto-approved). description — the meal description (required); meal_type: breakfast/lunch/dinner/snack/drink; eaten_at=ISO 'YYYY-MM-DD HH:MM' (default — now). nutrients — {code: amount} per nutrient_types (energy_kcal/protein/carbs/fat/fiber/sugar/ added_sugar/saturated_fat/omega3/sodium/potassium/calcium/iron/magnesium/zinc/vitamin_a/ vitamin_c/vitamin_d/vitamin_b12/folate_b9/water/caffeine/alcohol/...). added_sugar — sugar ADDED to the dish (not natural from fruit/milk). The full-profile estimate is made by the model (including from a photo); amounts are ≥ 0. glycemic_index (0–100)/glycemic_load — per meal; symptoms/wellbeing — reaction after eating. Daily totals go by the date of eaten_at: when the user logs a meal later (e.g. lunch in the evening, yesterday's dinner after midnight), pass when it was eaten, not now (more than a day ahead is refused); a time_check in the response means the time looks wrong — confirm it with the user. Review — query_food; daily norms — query_nutrition.

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

Input Schema

NameRequiredDescriptionDefault
notesNo
portionNo
eaten_atNo
symptomsNo
meal_typeNo
nutrientsNo
wellbeingNo
descriptionYes
glycemic_loadNo
glycemic_indexNo
nutrient_sourceNomodel_estimate

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, non-idempotent write, and the description adds real behavior beyond them: entries are auto-approved (no review gate), future dates more than a day ahead are refused, daily totals bucket by eaten_at date, and a time_check in the response signals a suspicious timestamp that must be confirmed with the user. It does not say what happens on a duplicate log or how amounts are capped/validated beyond '>= 0'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action is front-loaded, but the remainder is a single dense run-on paragraph where parameter documentation, nutrient lists, and date-bucketing rules are separated only by dashes and semicolons. The long nutrient_types enumeration consumes much of the text and would read far better as a structured list.

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 an 11-parameter mutation tool this covers the essential semantics, and the output schema means return values need not be re-explained — though it usefully flags the time_check response signal. Remaining gaps are duplicate-entry behavior and the meaning of portion, notes, and nutrient_source.

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 0% and the schema itself is bare titles, so the description carries the whole load — and it does for most fields: meal_type enum values, eaten_at ISO format and default, the nutrient code map with an explicit nutrient_types list, added_sugar meaning (added vs naturally occurring), non-negative amounts, glycemic_index range 0-100, and the symptoms/wellbeing meaning. It leaves notes, portion, and nutrient_source (default model_estimate) entirely unexplained.

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: 'Log a meal into the diary', with the parenthetical '(auto-approved)' immediately distinguishing it from the staged/approval workflow implied by siblings like approve_staged_source and list_pending_reviews. The closing routing ('Review — query_food; daily norms — query_nutrition') further separates read/inspect tasks from this write task.

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?

Gives concrete usage context: pass the time the meal was eaten rather than now, including for late logging across midnight, and route review to query_food and daily norms to query_nutrition. It stops short of naming when to use update_meal or delete_meal instead for corrections to an existing entry, so the alternatives guidance is partial.

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