Skip to main content
Glama

add_food_entry

Log food consumption to your Cronometer nutrition diary by specifying food details, serving weight, date, and meal time for accurate daily tracking.

Instructions

Add a food entry to the Cronometer diary.

Use search_foods to find food_id and food_source_id, then get_food_details for measure_id and weight_grams.

For CRDB/custom foods, you can omit measure_id (defaults to a universal NCCDB measure that works for all food sources). When measure_id is omitted, quantity is set to weight_grams.

Args: food_id: Numeric food ID from search_foods results. food_source_id: Food source ID from search_foods results. weight_grams: Weight of the serving in grams. date: Date to log the entry as YYYY-MM-DD (e.g. "2026-03-04"). measure_id: Measure/unit ID. Pass 0 (default) to use the universal measure that works for all food sources. quantity: Number of servings. Defaults to weight_grams when measure_id is 0 (universal gram-based measure). diary_group: Meal slot — one of "Breakfast", "Lunch", "Dinner", "Snacks" (case-insensitive, defaults to "Breakfast").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
food_idYes
food_source_idYes
weight_gramsYes
dateYes
measure_idNo
quantityNo
diary_groupNoBreakfast

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/cphoskins/cronometer-mcp'

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