Skip to main content
Glama
yazio-mcp

yazio-mcp

by fliptheweb

Add Recipe Portion

add_user_consumed_recipe

Log recipe portions to a Yazio diary using recipe ID, date, meal, and portion count so consumed recipe items are tracked as recipe_portions.

Instructions

Log portions of a recipe to the diary. Shows up in get_user_consumed_items as recipe_portions. Use get_recipe for the nutrients per portion.

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": {
      "recipe_id": "<recipe_id>",
      "date": "<date>",
      "daytime": "<daytime>",
      "portion_count": "<portion_count>"
    },
    "name": "add_user_consumed_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesDate and time when the food was consumed in "YYYY-MM-DD HH:mm:ss" format (e.g., "2025-12-18 12:30:00"), or date only in YYYY-MM-DD format
daytimeYesType of meal (breakfast, lunch, dinner, snack)
recipe_idYesRecipe ID from get_user_recipes, or recipe_id of an earlier recipe portion in get_user_consumed_items
portion_countYesNumber of portions eaten, e.g. 1 or 0.5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.0.21

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a non-idempotent, non-destructive write, so the safety profile is covered. The description adds real value beyond that by disclosing the downstream effect ("Shows up in get_user_consumed_items as recipe_portions"), which tells the agent how the write manifests and how to verify it. It stops short of warning that repeated calls create duplicate diary entries or describing any auth constraints.

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?

Two short sentences, zero filler, with the core action front-loaded and the verification hint second. Every clause carries information the agent can act on.

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?

For a four-required-parameter mutation with no output schema, the definition covers the action, the observable effect, and where to get the referenced nutrient data. It is slightly thin on duplicate-entry behavior and on how to obtain a valid recipe_id in the first place, though the schema partially covers the latter.

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 100%, so all four parameters including date formats, the daytime enum, recipe_id sourcing, and portion_count semantics are already documented in the schema. The description adds no per-parameter meaning beyond the schema, so the baseline of 3 applies.

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?

"Log portions of a recipe to the diary" gives a specific verb (log) and a specific resource (recipe portions), which is enough to tell it apart from food- or meal-logging siblings. It does not explicitly contrast itself with add_user_consumed_item or add_user_consumed_meal, so an agent must infer the distinction from the resource noun alone.

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?

Usage is implied by "log portions of a recipe to the diary," and the definition usefully routes the agent to get_recipe for nutrient data. However, there is no explicit when-to-use versus the sibling add_* logging tools, and no stated prerequisite that a recipe must already exist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.