Skip to main content
Glama

Log what was eaten

log_meal
Idempotent

Log a meal or a snack as FOODS, one per food with its amount and your calorie and macro estimate. Kove looks each food up (its food table, the product for a brand, the person's own saved figures) and uses those over your estimate when it knows the food, then adds the day up and writes the journal line itself. From a photo, send a pack's barcode or a label's per_100 figures on the food: they beat any estimate. Never send a day total. Answers with what changed and a write_id; tell the person what was logged in a sentence.

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

Input Schema

NameRequiredDescriptionDefault
dateNoOmit for today.
mealNoOnly when the person said which meal.
foodsNoFoods eaten, one each. Never a total.
kove_foodsNoFoods found in Kove's table or products with search_foods; Kove uses its own figures.
saved_foodsNoFoods from their saved list; Kove uses their own figures.
idempotency_keyYesA new random string per write (8-128 of A-Z a-z 0-9 - _ . :); send the same one to retry, never a new one.
figures_from_personNoTrue when the person gave the calories or macros themselves (a label, their own number): Kove keeps yours as sent instead of looking the foods up.

Output Schema

NameRequiredDescriptionDefault
dateYes
writtenYes
replayedNo
write_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations cover the write/idempotency safety profile, and the description adds genuinely non-obvious behavior on top: Kove resolves each food against its own table, brand product, or saved figures and overrides the caller's estimate, sums the day, and writes the journal line. It also discloses the response shape (what changed plus a write_id) and the resolution priority of barcode/per_100 over estimates.

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?

Four sentences, front-loaded with the primary action and then the estimate-override rule, the photo shortcut, and the response instruction. Most sentences earn their place, though phrasing like 'Kove looks each food up' is slightly compressed and the day-total warning could sit closer to the foods description.

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?

An output schema exists and the description still summarizes the return ('what changed and a write_id'), so return values need no further explanation. It covers the tricky parts of a seven-parameter write tool — estimate override, barcode/label priority, no day totals — but says nothing about date/meal defaults or idempotency-key retry, relying entirely on schema text for those.

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 100%, so the baseline is 3, but the description adds priority semantics the schema does not state: barcode and per_100 figures 'beat any estimate' and Kove's lookup overrides submitted calories/macros. The parenthetical '(its food table, the product for a brand, the person's own saved figures)' also implicitly maps the kove_foods and saved_foods arrays to their sources.

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 definition opens with a specific verb+resource: 'Log a meal or a snack as FOODS, one per food with its amount and your calorie and macro estimate.' That distinguishes it in substance from value/workout logging siblings. It never names an alternative tool explicitly, so sibling routing is left to inference rather than stated.

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?

Clear operating context is given: normal path is name+amount+estimate, photo path is to send a barcode or per_100 label figures, and 'Never send a day total' is an explicit exclusion. What is missing is routing guidance against look-alike siblings (log_values) or when to prefer saved_foods/kove_foods over free-form foods, which is left to the schema.

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.