Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Build a consolidated shopping list

create_shopping_list

Builds one consolidated, aisle-organised shopping list from a completed menu draft (menuDraftId) or a set of recipes (recipeIds: catalogue, the user's own, or both), merging duplicate ingredients and scaling to servings. Returns shoppingListId, the source draft and recipes, and counts: buy, covered (already have) and checkStock (pantry matches to confirm); remainingItemCount includes unresolved stock checks. Any recipe ID that can't be resolved is reported in note, meaning the list is incomplete. Pantry handling follows the draft, or explicit pantryMode for recipeIds: ignore and focus do not read stock; use covers comparable measured stock and leaves unmeasured matches as checkStock. Set leaveOutPantry only when asked to leave out Pantry items, matching Chef IQ Shop coverage. Low and zero stock cover nothing. Whole items round up for buying; measured quantities are recipe amounts. get_shopping_list, update_shopping_list and open_shop_handoff take the returned shoppingListId. Requires a linked Chop it account.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_shopping_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
servingsNo
recipeIdsNoExplicit recipe ids (used when no menuDraftId).
pantryModeNoFor recipeIds, use checks your Pantry, ignore leaves it out, and focus does not read stock. For a draft, omit or match its pantryMode; change the draft first otherwise.
menuDraftIdNoA menuDraftId returned by create_weekly_menu.
leaveOutPantryNoOnly when asked to leave out Pantry items. Uses the same reversible stock coverage as Chef IQ Shop, including listed items without comparable amounts. Low or zero stock never covers a line.

Output Schema

NameRequiredDescriptionDefault
noteNo
countsNo
sourceNo
readOnlyNo
revisionNo
sectionsYes
recipeIdsNo
recipeServingsNo
shoppingListIdYes
shopIntelligenceNo
sourceMenuDraftIdNo
remainingItemCountNo
localStateAvailableNoFalse for app-week reads: browser-only ticks, extras and serving overrides are unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / sections / items / properties / items / items / properties / retailerTarget
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "quantity": {
      +          "type": "number"
      +        },
      +        "unit": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "quantity",
      +        "unit"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed3 schema fields changed
    • addedOutput schema / properties / localStateAvailable
      Added value: +{
      +  "description": "False for app-week reads: browser-only ticks, extras and serving overrides are unavailable.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / readOnly
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / source
      Added value: +{
      +  "const": "current_week",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / leaveOutPantry
      Added value: +{
      +  "description": "Only when asked to leave out Pantry items. Uses the same reversible stock coverage as Chef IQ Shop, including listed items without comparable amounts. Low or zero stock never covers a line.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / pantryMode
      Added value: +{
      +  "description": "For recipeIds, use checks your Pantry, ignore leaves it out, and focus does not read stock. For a draft, omit or match its pantryMode; change the draft first otherwise.",
      +  "enum": [
      +    "ignore",
      +    "use",
      +    "focus"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (which only mark it as a non-destructive, non-idempotent write): it discloses merging and scaling behaviour, partial-failure semantics ('Any recipe ID that can't be resolved is reported in note, meaning the list is incomplete'), round-up rules for whole items, and — critically — the precondition 'Requires a linked Chop it account'.

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?

Front-loaded with what is built and from what, and every clause (pantry modes, low-stock rule, rounding, account requirement) carries decision-relevant information. The middle section is a dense run-on chain of sentences that takes effort to parse, costing a point on structure.

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?

Complete for a 5-parameter write tool: covers prerequisites, source selection, pantry edge cases, partial results, and hand-off to the tools that consume shoppingListId. Some return-value detail duplicates the output schema, but nothing an agent needs to call 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 already 80%, yet the description still adds meaning: recipeIds may be catalogue, the user's own, or both; ignore and focus do not read stock while use covers only comparable measured stock; leaveOutPantry mirrors Chef IQ Shop coverage. It restates some pantryMode behaviour already in the schema, which keeps it from a 5.

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?

States a specific verb and resource ('Builds one consolidated, aisle-organised shopping list') plus its two mutually exclusive sources, menuDraftId or recipeIds. Sibling tools (get/update_shopping_list, open_shop_handoff) are clearly downstream consumers of the returned ID, so an agent can place this tool in the workflow without opening a schema.

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

Usage Guidelines4/5

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

Gives conditional guidance: use menuDraftId from a completed draft or recipeIds otherwise, set leaveOutPantry only when the user asks to leave Pantry items out, and omit pantryMode for drafts. Lacks an explicit 'prefer this over X' routing statement and silently allows both source params to be omitted, but the usage context is clear.

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