Skip to main content
Glama
Mealie MCP Server

Mealie MCP Server

search_by_ingredient

Find recipes that contain a specific ingredient by searching recipe names, descriptions, and ingredient lists; set a result limit to control the number of matches returned.

Instructions

Find recipes that contain a specific ingredient. Searches through recipe names, descriptions, and ingredient lists.

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": {
      "ingredient": "<ingredient>"
    },
    "name": "search_by_ingredient"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 20)
ingredientYesIngredient name to search for (e.g. 'cream cheese', 'chicken')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the non-obvious trait that matching spans descriptions and names, not just ingredient lists, and 'Find' signals a read-only operation. However, it says nothing about match semantics (substring vs exact, case sensitivity), result ordering, or what a returned recipe record contains.

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?

Two tight sentences with the purpose front-loaded and the search scope following immediately. There is no filler, no restatement of the tool name, and nothing that could be cut without losing information.

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?

This is a simple two-parameter read tool with a fully documented schema and no output schema, so the short description is largely proportionate. The remaining gap is that an agent is not told the matching/stemming behavior or result ordering, which matters when a user searches a compound ingredient like 'cream cheese'.

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 both 'ingredient' (including example values) and 'limit' (with default) documented in the schema itself. The description adds no syntax, format, or matching guidance beyond that, so the baseline of 3 applies.

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 definition opens with a specific verb and resource ('Find recipes that contain a specific ingredient') and then scopes the search to recipe names, descriptions, and ingredient lists. That scope detail implicitly separates it from the generic search_recipes sibling, but the sibling is never named, so the agent must infer the distinction.

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 by the ingredient-scoped framing rather than stated: an agent can infer this tool is for ingredient-driven lookup as opposed to generic recipe search. There is no explicit when-to-use, when-not-to-use, or named alternative, so selection against search_recipes remains an inference.

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