Skip to main content
Glama
yazio-mcp

yazio-mcp

by fliptheweb

Create Product

create_product

Create custom food products from per-100 g/ml label values and return a product_id for logging consumed items; search first to avoid duplicates.

Instructions

Create a custom product (e.g. a restaurant dish or a brand missing in search) from label values per 100 g/ml. Returns its product_id for add_user_consumed_item. Search first: creating duplicates clutters the database.

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": {
      "name": "<name>",
      "category": "<category>",
      "energy_per_100": "<energy_per_100>",
      "protein_per_100": "<protein_per_100>",
      "fat_per_100": "<fat_per_100>",
      "carb_per_100": "<carb_per_100>"
    },
    "name": "create_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProduct name as it will show in search and the diary
categoryYesProduct category
producerNoBrand / producer / restaurant
servingsNoNamed servings, e.g. [{"serving": "slice", "amount": 25}]
base_unitNoBase unit: grams (g) or milliliters (ml)g
is_privateNoPrivate products are visible only to this user
fat_per_100YesFat in g per 100 g/ml
carb_per_100YesCarbohydrates in g per 100 g/ml
energy_per_100YesEnergy in kcal per 100 g (or 100 ml), as on the label
protein_per_100YesProtein in g per 100 g/ml
extra_nutrients_per_100NoOther nutrients by Yazio key, e.g. {"nutrient.sugar": 5, "nutrient.dietaryfiber": 2, "nutrient.saturated": 1.5, "nutrient.salt": 0.8}; same scale as the main values

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.0.21

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false; the description adds real value beyond them by warning that repeated calls create duplicate records and by stating the return value needed for follow-up calls. It does not cover failure modes (e.g. invalid category, name collisions) but the key mutation risk is disclosed.

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, each doing distinct work: what it creates, what it returns and where to use it, and the dedup warning placed last. No filler.

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 an 11-parameter, nested-object creation tool with no output schema, the description supplies the essential context (returned id, duplicate risk, data basis) while the schema documents fields. Minor gaps: default privacy behavior and whether the category enum constrains nutrition fields are left to the 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 100% with per-field descriptions and enum values, so the schema already carries parameter meaning; the description only restates the per-100 g/ml scale and base unit. That is useful framing but adds little beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource (create a custom product) and scopes it with concrete examples (restaurant dish, brand missing in search) plus the data basis (label values per 100 g/ml), so it is clearly distinct from get_product and the add_* siblings.

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?

Gives an explicit precondition ('Search first: creating duplicates clutters the database') and states the downstream use of the returned product_id with add_user_consumed_item, which routes the agent well. It stops short of naming a specific tool to search with, so the alternative is only implied.

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