Skip to main content
Glama
yazio-mcp

yazio-mcp

by fliptheweb

Add Favorite Product

add_user_favorite_product

Add a product to the user's favorites with the amount and optional serving usually consumed, enabling quick reuse in food logging.

Instructions

Add a product to the user's favorites, with the amount (and optionally serving) it is usually eaten in.

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": {
      "product_id": "<product_id>",
      "amount": "<amount>"
    },
    "name": "add_user_favorite_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in base units (g or ml) the product is favorited with
servingNoServing type (e.g. portion, fruit, glass, cup, slice, piece, bar, gram, bottle, can, etc.)
product_idYesProduct UUID v1/v4 (e.g. 4ceff6e9-78ce-441b-964a-22e81c1dee92)
serving_quantityNoQuantity of servings

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.0.21

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the write profile is covered. The description adds real context by explaining that amount and serving represent how the product is 'usually eaten' — a stored default rather than a one-off log. It is silent, however, on what happens when the product is already a favorite, which is the key open question 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with the primary action front-loaded and no filler; the parenthetical is the only mildly awkward construction. Nothing in it is redundant, but it is also brief enough that little room is given to the behavioral caveats the tool needs.

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 100% schema coverage, annotations present, and no output schema, the definition covers the minimum an agent needs to compose a call. For a non-idempotent write that stores default eating values, one expects at least a note on duplicate handling or on how these defaults are later used; that gap keeps it at adequate rather than complete.

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%, with units ('Amount in base units (g or ml)') and serving examples already spelled out in the schema, so the schema carries the burden. The description restates amount and serving as the habitual values but says nothing about serving_quantity, the fourth parameter, leaving it entirely to the schema. Baseline 3 applies when the schema documents every parameter.

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 states a specific verb and resource (add a product to the user's favorites) and explains that the amount/serving recorded are the user's habitual ones, so an agent knows exactly what the tool does. It does not explicitly contrast with the add_user_favorite_recipe or remove_user_favorite_product siblings, but the resource (product vs recipe) is unambiguous in the text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance beyond the obvious implication of the name: nothing says whether this is for bookmarking defaults versus logging consumption (add_user_consumed_item), nothing about whether the product must already exist, and nothing about the reverse operation. An agent must infer the routing decision from the tool name alone.

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