Skip to main content
Glama

Calories & Recipes | Nutrista

Log a meal to the Nutrista diary

log_meal
Read-onlyIdempotent

Use this when the user wants a meal in their Nutrista food diary, for example from a photo of what they ate or a list like 'chicken, rice and salad'. Takes each food in plain words with estimated grams, matches every item to the Nutrista food database and shows the matched list, which the user can change before pressing Save. Nothing is saved until the user presses Save.

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

Input Schema

NameRequiredDescriptionDefault
itemsYes
eaten_atNo
languageNo
meal_typeYes

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 readOnlyHint=true and idempotentHint=true; the description adds real value beyond them by explaining the pipeline: fuzzy-match every item against the Nutrista food database, surface the matched list for review, and persist nothing until the user presses Save. What is missing is where 'Save' lives (a separate tool call? UI action?) and what happens to unmatched items, which matters for a tool whose whole purpose is a confirmation gate.

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?

Three sentences, front-loaded with the usage trigger, no filler. Slight redundancy in saying both 'which the user can change before pressing Save' and 'Nothing is saved until the user presses Save' — the second restates the first for emphasis but costs a sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description reasonably sketches the return: a matched list the user can edit. But for a 4-parameter, 2-required tool embedded in a diary workflow, it leaves the handoff to a save step and the handling of unmatched foods unexplained, so an agent could reasonably think calling log_meal alone completes the logging.

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 0%, so the description must carry parameter meaning, and it only covers half: it explains that items arrive as plain-text names with estimated grams, which usefully signals that fuzzy matching will occur. meal_type, eaten_at and language are never mentioned, and limits like 1-15 items and the 1-3000 gram range are left to the raw schema constraints.

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?

States a specific verb and resource ('a meal in their Nutrista food diary') and grounds it with two concrete input examples, a photo or a plain list like 'chicken, rice and salad'. An agent can tell it is a meal-level staging operation rather than a single-food lookup, though it never names or contrasts itself with siblings such as log_food or save_meal.

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?

Opens with an explicit trigger ('Use this when the user wants a meal in their Nutrista food diary') plus realistic input shapes, so the when-to-use case is unambiguous. There are no exclusions and no named alternatives, so the agent gets no signal about when to prefer log_food or how save_meal fits the flow.

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