Skip to main content
Glama

Calories & Recipes | Nutrista

Add a food or recipe to the Nutrista diary

log_food

Use this when the user asks to log, track or add one food or recipe they ate to their Nutrista diary. Takes a Nutrista food id or recipe id, an amount and the meal. The entry shows up in the Nutrista mobile app.

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": {
      "amount": "<amount>",
      "meal_type": "<meal_type>"
    },
    "name": "log_food"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNo
amountYes
food_idNo
eaten_atNo
languageNo
meal_typeYes
recipe_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare the mutation profile (readOnly=false, destructive=false, idempotent=false), so the lower bar applies. The description usefully adds that a food id OR recipe id is expected, which the schema's required list does not enforce, but it omits that repeated calls will create duplicate entries (non-idempotent) and says nothing about id validity or failure behavior; the app-visibility sentence adds little.

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 short sentences, front-loaded with the usage trigger and then the required inputs—no repetition or filler structure. The closing sentence about the entry appearing in the mobile app is the only line that does not clearly earn its place.

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?

For a 7-parameter mutation with no output schema and zero schema descriptions, the definition is only just sufficient: the agent knows what to log and into which meal, but not how to obtain a valid food/recipe id, what unit to assume, or how eaten_at defaults. Those are meaningful gaps for an add-entry tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must carry the load. It explains the mutual role of food_id/recipe_id along with amount and meal, but leaves unit (a 23-value enum), eaten_at (whether it defaults to now), and language completely unaddressed, so nearly half the surface remains undocumented.

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 plus resource ("log, track or add one food or recipe ... to their Nutrista diary") and scopes it to a single item, which implicitly separates it from meal-level logging siblings. It stops short of naming the alternative (e.g. log_meal) so an agent still has to infer the boundary.

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?

It supplies a clear trigger ("when the user asks to log, track or add") and the phrase "one food or recipe" quietly excludes multi-item or meal-level requests. There is no explicit when-not statement or named alternative, so routing between log_food and log_meal is left partly to inference.

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