Skip to main content
Glama
Tandoor Recipes MCP

Tandoor Recipes MCP

Parse ingredient

parse_ingredient
Idempotent

Parse a free-form ingredient line into amount, unit, food, note, and matched IDs while creating any missing Tandoor food or unit records for recipe ingredient creation.

Instructions

Parse a free-form ingredient string (e.g. "2 cups flour") into amount, unit, unit_id, food, food_id, note. Writes to the database: Tandoor creates any Food or Unit row it does not already have. unit and food are the matched row names, so "cups" can come back as "cup". With no unit, unit is "" and unit_id is omitted. food_id and unit_id pass straight to create_ingredient. Blank text returns Tandoor's 400. Tandoor's parser is heuristic and can misfire on compound descriptions, brand names, or non-English units.

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": {
      "text": "<text>"
    },
    "name": "parse_ingredient"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesOne ingredient line, e.g. "2 cups flour".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.4.4
    • addedInput schema / properties / text / description
      Added value: +"One ingredient line, e.g. \"2 cups flour\"."
  2. First observedv3.4.0

TDQS

A4/5.0
Behavior4/5

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

The description adds real behavioral content beyond the annotations: it discloses the write side effect (Tandoor creates Food/Unit rows), the normalization behavior ("cups" may return as "cup"), the empty-unit representation, the 400 on blank text, and the heuristic parser's error modes. Since annotations already cover safety (readOnlyHint=false, destructiveHint=false, idempotentHint=true), this is strong supplemental disclosure with no contradiction. Minor gap: no mention of latency or duplicate handling on repeated parses.

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?

Long but dense with substance — every sentence carries a distinct fact (output shape, write side effect, name normalization, empty-unit handling, error case, parser limits). It is front-loaded with the core purpose and has no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly spends its space enumerating return fields and their edge cases, which is exactly what is needed. For a single-parameter tool with annotations covering safety, nothing an agent needs to invoke it correctly is missing.

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% and there is one parameter, so the baseline is already 3. The description still adds meaning: "free-form ingredient string" with a concrete example, and the non-obvious constraint that blank text returns a 400 — which the schema does not say.

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 ("Parse a free-form ingredient string") and enumerates the exact output fields (amount, unit, unit_id, food, food_id, note), so an agent knows precisely what comes back. It does not name any sibling (e.g. create_food or create_ingredient) as an alternative, so it falls short of full sibling differentiation.

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: the mention that "food_id and unit_id pass straight to create_ingredient" hints at the intended workflow, but there is no explicit when-to-use or when-not-to-use guidance against siblings. An agent must infer the parse-then-create pipeline from a subordinate clause.

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