Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Change one dinner or its servings

revise_weekly_menu
Destructive

Changes a menu draft and returns the updated draft with a new menuDraftId; unrelated dinners, locks, dietary rules and pantry choice are kept. Operations: select one offered choice for a slot (slotId + replacementRecipeId, which also locks it); select several unlocked dinners in one revision (choices pairs slotIds and recipeIds in order; each recipe must belong to its slot unless all slots are interchangeable); five new choices for one slot (slotId + reroll: true); top up every slot listed in slotIssues in one call (refillShortSlots: true, no slotId); change a slot's protein, timing or health aim (slotRequirement or replacementBrief); change servings for one slot, or for the whole week without slotId; change pantry ranking (pantryMode, focusIngredients); lock or unlock a dinner (locked); undo the last change (undoLastChange). An explicit chooseForMe request can select a matching candidate for one slot; ordinary replacement requests leave that slot unselected. For a plan automatically made This Week, an approved change takes the first different matching choice and updates that same live week while it is still current and unedited in the app; Saved Week snapshots stay unchanged. Other proposals remain unselected until chosen. Changes described only in chat leave the plan as it was. The returned menuDraftId is the one to save or shop. A stale-edit error includes the current draft and changeApplied=false; the returned state supports review and a retry of only the unapplied change using its current menuDraftId. Exact slot IDs and labels come from get_menu_draft. Choosing and changing dinners works before sign-in; saving or shopping the result needs a linked account.

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": {
      "menuDraftId": "<menuDraftId>"
    },
    "name": "revise_weekly_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotNoExact slot label to change; never rebuild unrelated dinners.
lockedNoKeep this dinner through future changes. Unlock explicitly before replacing.
rerollNoFive new candidates for the target unresolved slot only. Preserve all constraints and unrelated slots; exclude its previously shown recipes where possible.
slotIdNoStable slot ID, preferred over the legacy slot label.
choicesNoFor two or more dinners only. For one dinner use slotId and replacementRecipeId instead. Pair each unlocked slot with its own offered recipe in the same order. Interchangeable slots may share their offered recipes. Supply one distinct offered recipe per slot. This is one atomic draft revision; never combine with other edits.
servingsNoChange the selected slot, or all slots when slot is omitted.
pantryModeNoRefresh unselected dinners using this task-only pantry choice, preserving all selected slots, servings and dietary restrictions.
chooseForMeNoSelect one matching candidate for this slot only when the user explicitly asks you to choose. May accompany replacementBrief or reroll. Never saves or activates the week.
menuDraftIdYes
undoLastChangeNoUndo the latest draft edit as a new revision. Does not change Saved Weeks, This Week or previous shopping lists.
slotRequirementNoReplace this slot’s structure only. Other dinners stay unchanged.
focusIngredientsNo
refillShortSlotsNoOne repair for the whole draft: top up every unselected slot that has fewer than five candidates (see slotIssues), keeping its existing cards, every full slot and every selection. No slotId. Use this instead of rerolling short slots one by one; do not call it when slotIssues is empty.
replacementBriefNoWhat to change about this dinner, e.g. vegetarian or something new. Existing exclusions remain enforced.
replacementRecipeIdNoSelect an exact offered alternative for this slot. Must belong to this draft's options; cannot duplicate another chosen dinner.

Output Schema

NameRequiredDescriptionDefault
noteNo
briefNo
titleYes
appUrlYes
statusYes
canUndoNo
dietaryNo
dinnersYes
priorityNo
progressYes
recoveryNo
servingsYes
diversityNo
selectionYes
navigationNo
pantryModeNo
slotIssuesNo
menuDraftIdYes
savedWeekIdNo
recipeSourceNo
changeAppliedNo
savedWeekTitleNo
diversityStatusNo
savedWeekAppUrlNo
focusIngredientsNo
selectionWarningsNo
allowedNextActionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / choices / description
      Previous value: -"For two or more dinners only. For one dinner use slotId and replacementRecipeId instead. Add and keep recipes together in interchangeable unlocked slots. Supply one distinct offered recipe per slot. This is one atomic draft revision; never combine with other edits."New value: +"For two or more dinners only. For one dinner use slotId and replacementRecipeId instead. Pair each unlocked slot with its own offered recipe in the same order. Interchangeable slots may share their offered recipes. Supply one distinct offered recipe per slot. This is one atomic draft revision; never combine with other edits."
  2. Changed1 schema field changed
    • changedInput schema / properties / choices / description
      Previous value: -"Add and keep recipes together in interchangeable unlocked slots. Supply one distinct offered recipe per slot. This is one atomic draft revision; never combine with other edits."New value: +"For two or more dinners only. For one dinner use slotId and replacementRecipeId instead. Add and keep recipes together in interchangeable unlocked slots. Supply one distinct offered recipe per slot. This is one atomic draft revision; never combine with other edits."
  3. Changed2 schema fields changed
    • addedOutput schema / properties / dinners / items / properties / candidates / items / properties / protein
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / dinners / items / properties / protein
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / properties / changeApplied
      Added value: +{
      +  "const": false,
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / recovery
      Added value: +{
      +  "const": "review_current_draft",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • removedOutput schema / properties / debug
      Removed value: -{}
  6. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Well beyond the annotations, the description discloses that each call returns a new menuDraftId, that a stale edit returns the current draft with changeApplied=false and supports a retry, that live This Week plans update in place while Saved Week snapshots do not, and that choosing works before sign-in but saving/shopping needs a linked account. The destructiveHint=true annotation is consistent with an in-place draft revision that preserves unrelated content, so nothing is contradicted.

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?

It is front-loaded with the core contract and the operation inventory, and given 15 parameters and roughly a dozen modes the length is largely earned. It still reads as a semicolon-chained wall, and the selection-vs-unselected point is restated in several places ('ordinary replacement requests leave that slot unselected,' 'Other proposals remain unselected until chosen'), which costs some density.

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?

For a mutation tool with an output schema, nested objects and 15 parameters, the definition covers the pieces an agent actually needs: which parameter combinations are legal, what survives a revision, how stale conflicts are surfaced, auth preconditions, and the live-vs-saved week distinction. Return-value detail is present without duplicating the output schema.

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 87%, so the schema already documents most parameters; the description nonetheless adds cross-parameter semantics the schema cannot express, such as servings applying to the whole week when slot is omitted, refillShortSlots taking no slotId, and choices pairing slotIds with recipeIds in order. The ordering/interchangeability rule is the most valuable addition, though a few modes (pantryMode, focusIngredients) get little extra explanation 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 opening sentence names a specific verb and resource ('Changes a menu draft') and immediately scopes the blast radius ('unrelated dinners, locks, dietary rules and pantry choice are kept'). It also routes the agent to get_menu_draft for slot IDs and implies save_menu/open_shop_handoff downstream ('The returned menuDraftId is the one to save or shop').

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?

Nearly every mode carries an explicit when/when-not rule: choices is 'For two or more dinners only. For one dinner use slotId and replacementRecipeId instead'; refillShortSlots says 'Use this instead of rerolling short slots one by one; do not call it when slotIssues is empty'; chooseForMe applies only when the user 'explicitly asks you to choose.' Alternatives are named rather than inferred.

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