Skip to main content
Glama

parse_recipe_ingredients

Parse a recipe's free-text ingredients and bind them to food and unit IDs using NLP, automatically creating new records when no match exists. Low-confidence lines remain as free text for shopping-list aggregation.

Instructions

Re-parse a recipe's free-text ingredients and bind to food/unit IDs.

Reads the recipe's current ingredients, runs each line through Mealie's NLP parser, looks up matching food / unit records (matching on name, plural, abbreviations, and aliases — case-insensitive), creates new food / unit records when no match exists, and writes the bound result back to the recipe. After this runs, ingredients are eligible for shopping-list aggregation.

Lines whose parsed average confidence falls below min_confidence are stored as free text (no binding) so quirky lines like "splash of sake for deglazing" don't pollute the food catalogue.

Returns a per-line summary of what was bound vs. left as free text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYes
min_confidenceNo
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the key behavioral traits: it performs a write operation (modifies the recipe), includes NLP parsing, creates new food/unit records, handles low-confidence lines by storing as free text, and returns a per-line summary. It does not cover potential rate limits or authorization requirements, but the main behaviors are transparent.

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?

The description is well-structured, starting with a concise one-line summary followed by detailed paragraphs. It is not overly verbose, but some repetition could be eliminated (e.g., mentioning the NLP parser twice). Still, it is efficient and front-loads the key purpose.

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?

Given the tool has only 2 parameters, no output schema, and no annotations, the description provides sufficient context for an AI agent to understand the tool's operation, including the confidence threshold and return format (per-line summary). It does not cover idempotency or undo behavior, but these are not critical for a parsing tool.

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?

The input schema has 0% description coverage, so the description must compensate. It explains the min_confidence parameter clearly: lines below the threshold are stored as free text, with a default of 0.5. The slug parameter is implied as the recipe identifier, though not explicitly detailed. Overall, the description adds meaningful context beyond the schema.

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?

The description clearly states the tool re-parses free-text ingredients and binds them to food/unit IDs. It explains the full pipeline: reading current ingredients, NLP parsing, matching, creating new records, and writing back. This distinguishes it from sibling tools like parse_ingredient (which likely only parses without binding) and set_recipe_ingredients (which may set without parsing).

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?

The description provides context for when to use (e.g., to make ingredients eligible for shopping-list aggregation) and explains the min_confidence parameter's role. However, it does not explicitly specify when not to use it or compare with alternatives like parse_ingredient or set_recipe_ingredients_parsed. The guidelines are inferred but not directly stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/obrien-matthew/mcp-mealie'

If you have feedback or need assistance with the MCP directory API, please join our Discord server