Skip to main content
Glama

Log food

log_food

Record one or more food items for a meal. Pass every item of the meal in one call. Returns the created entries and the day's running totals versus targets.

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

Input Schema

NameRequiredDescriptionDefault
dateNoCalendar date YYYY-MM-DD in the user's timezone
mealYesA meal key from the user's meal plan (meals in the profile): breakfast, morning_snack, lunch, evening_snack, dinner, snack, other, or a custom key such as post_dinner. The meal's label is accepted too.
itemsYes
contract_versionNoCopy the version printed here: 1.6.3. The server compares it with what it is running to tell whether your tool list is current.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / contract_version / description
      Previous value: -"Copy the version printed here: 1.6.2. The server compares it with what it is running to tell whether your tool list is current."New value: +"Copy the version printed here: 1.6.3. The server compares it with what it is running to tell whether your tool list is current."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the agent knows this is a non-destructive but non-idempotent write. The description adds useful behavioral context by stating it returns the created entries plus the day's running totals versus targets. It does not address duplicate-entry risk from repeated calls, permission needs, or partial-failure behavior, which would matter given idempotentHint=false.

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 short sentences, no filler, with the core action front-loaded and the batching constraint and return value following in priority order. Every sentence earns its place.

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?

This is a complex tool with a nested items array and many required micronutrient keys, but the schema documents those thoroughly, and the description covers the return shape at a high level. Missing is any mention that date is optional/defaulted or that items without eaten_at are reported in missing_time, both of which live only in schema field text. Overall adequate for the complexity given schema richness and no output schema.

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 75% and the schema itself is exceptionally detailed—meal keys, item fields, micros key list, quantity versus servings, and the contract_version note are all documented inline. The description adds little beyond stating that multiple items go in one call. Baseline 3 is appropriate when the schema does this much work.

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 description gives a specific verb and resource: 'Record one or more food items for a meal.' An agent can tell this is a create/write tool for meal entries. However, it does not differentiate itself from near-neighbors such as log_shared_portion or update_food_entry, so sibling differentiation is left to naming inference.

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?

There is explicit batching guidance: 'Pass every item of the meal in one call,' which tells the agent not to split a meal across calls. Beyond that, the description gives no conditions for choosing this tool over log_shared_portion, save_food, or update_food_entry, so usage is only implied.

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