Skip to main content
Glama
yazio-mcp

yazio-mcp

by fliptheweb

Add Consumed Item

add_user_consumed_item

Logs a consumed food item to a user's nutrition diary with product, meal type, amount, and date/time, returning the entry ID for later removal.

Instructions

Add a food item to user consumption log. Pass date with time ("YYYY-MM-DD HH:mm:ss") to keep the time of the entry; date only (YYYY-MM-DD) logs it at 00:00. Returns the entry ID for remove_user_consumed_item.

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>",
      "date": "<date>",
      "daytime": "<daytime>",
      "amount": "<amount>"
    },
    "name": "add_user_consumed_item"
  }
}

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
amountYesAmount of the product consumed in base units (g or ml)
daytimeYesType of meal (breakfast, lunch, dinner, snack)
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. Changed2 schema fields changedv0.0.21
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / date / anyOf
      Previous value: -[
      -  {
      -    "description": "Date in YYYY-MM-DD format",
      -    "format": "date",
      -    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      -    "type": "string"
      -  },
      -  {
      -    "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "description": "Date in YYYY-MM-DD format",
      +    "format": "date",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      +    "type": "string"
      +  },
      +  {
      +    "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]) ([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$",
      +    "type": "string"
      +  }
      +]
  2. Changed5 schema fields changedv0.0.15
    • addedInput schema / properties / date / anyOf
      Added value: +[
      +  {
      +    "description": "Date in YYYY-MM-DD format",
      +    "format": "date",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      +    "type": "string"
      +  },
      +  {
      +    "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / date / description
      Previous value: -"Date when the food was consumed"New value: +"Date 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"
    • removedInput schema / properties / date / format
      Removed value: -"date"
    • removedInput schema / properties / date / pattern
      Removed value: -"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    • removedInput schema / properties / date / type
      Removed value: -"string"
  3. First observedv0.0.12

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the write, non-idempotent, non-destructive profile. The description adds real behavioral context beyond that: a date-only value silently normalizes the entry to 00:00, which materially affects what gets written. It stops short of stating that repeated calls create separate entries despite idempotentHint=false, or what permissions/validation failures look like.

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, front-loaded with the action, followed by the one non-obvious input rule and the return-value contract. No filler or restatement of the title.

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 6-parameter mutation with no output schema, the description covers the date semantics and the return value (entry ID, with a follow-up tool named). However it leaves the interaction between amount and serving_quantity ambiguous, which is the main thing an agent could get wrong when logging an entry.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning the schema lacks: it explains the consequence of each accepted date format rather than just repeating the pattern. The relationship between amount (base units) and serving_quantity is left unexplained, which keeps it from a 5.

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 food item to user consumption log.' That is clear enough to distinguish it from list/delete siblings, but it never names the closest alternatives (add_user_consumed_meal, add_user_consumed_recipe), so an agent must infer that 'food item' means a product entry rather than a meal or recipe.

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 rather than stated: it explains the date-format choice and points to remove_user_consumed_item for the returned ID, which is useful lifecycle guidance. It does not say when to prefer this over the meal/recipe consumption siblings or whether repeat calls create duplicates.

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