Skip to main content
Glama

Check missing ingredients

recipe_needs
Read-only

Given a recipeId, report which ingredients the user is MISSING for it (diffed against their inventory), plus what they already have. Read-only. Use for 'what do I need for lasagna?'. To add the missing items, use add_recipe_gap_to_list.

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": {
      "recipeId": "<recipeId>"
    },
    "name": "recipe_needs"
  }
}

Input Schema

NameRequiredDescriptionDefault
recipeIdYesThe recipeId to check.
inventoryItemsNoItem names the user has. Omit to use the connection's inventory list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

The readOnlyHint annotation already declares safety, and the description reinforces read-only behavior. It adds useful behavioral context by explaining that results are diffed against the user's inventory and include both missing and already-owned ingredients. It does not cover edge cases like unknown recipeId, but that is acceptable given the annotation coverage.

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?

The description is compact and front-loaded: it states the operation, the read-only nature, a usage example, and the alternative tool in three short sentences with no waste.

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?

There is no output schema, so the description appropriately explains the return content: missing ingredients plus what the user already has. For a two-parameter read-only tool with full schema coverage, this is complete enough to call correctly.

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%, so both parameters are already documented in the input schema. The description clarifies that the diff uses inventory, which adds modest value, but it does not need to restate parameter details. Baseline 3 applies when the schema already does the heavy lifting.

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 states a specific operation: given a recipeId, report missing ingredients diffed against inventory plus what is already owned. It distinguishes itself from the sibling add_recipe_gap_to_list by naming that tool for the follow-up action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete use case ('what do I need for lasagna?') and explicitly routes the agent to add_recipe_gap_to_list when the goal is to add missing items. That is clear when-to-use guidance with an alternative.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources