Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Build a weekly dinner menu

create_weekly_menu

Main entry point for planning dinners. Builds a draft week of dinners from Chop it's catalogue, including broad requests such as 'plan five dinners' with a balanced protein mix adapted to food rules. Each dinner has up to five recipe choices. For a linked account with no This Week, the first different choice for each dinner is taken and the plan is saved as This Week in this call. Otherwise it remains a proposal until the person accepts it. Returns structured dinner choices and a menuDraftId that revise_weekly_menu, get_menu_draft, save_week and create_shopping_list accept. Building a draft works without an account from the fixed 100-recipe guest preview; a linked account plans from the complete catalogue. Parameters: brief is the user's own words; each counted protein ('2 chicken, 1 fish') or slotRequirement is one dinner slot; dietary holds whole-week food rules only (one vegetarian dinner is a slot, not dietary); maxTimeMins caps every dinner, while slotRequirements can mix quick and slower dinners; priority is balanced, quick (30-minute cap), healthy or comfort; pantryMode stays off unless the user wants to cook from their pantry (using account stock needs a linked account); includeRecipeIds are pinned as selected dinners. Dietary rules and time limits are hard constraints, and only dinner mains are offered. slotIssues lists any slot with fewer than five matches and the reason: fewer cards means fewer recipes met that slot's rules, not that the catalogue is short.

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": {
      "brief": "<brief>"
    },
    "name": "create_weekly_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefYesFree-text brief, e.g. 'quick midweek family dinners, no fish'.
dietaryNo
priorityNoquick and speedy are the same criterion: every dinner within 30 minutes of credible total time. healthy uses the documented per-serving nutrition rule; comfort is the curated comfort style. balanced applies no preference.
servingsNo
mixPresetNo
pantryModeNoTask only: default ignore for fresh inspiration; use only when explicitly asked to plan from stock; focus prioritises named ingredients. Never changes the diet, foods to avoid or other lasting preferences.
maxTimeMinsNoGlobal hard cap for EVERY dinner. For quick weeknights plus a slower weekend, use slotRequirements instead.
dinnersCountNoHow many dinners to plan. If omitted, the count named in the brief wins, else 5.
recipeSourceNoSaved means the linked library. Not recently planned excludes recent MCP draft selections; it does not imply never cooked.
configurationIdNoSet by the weekly chooser widget: the chooser this week is built from, so the widget can find it again after a reload.
excludeRecipeIdsNo
focusIngredientsNoOnly ingredients explicitly named for using up; do not fill from remembered inventory.
includeRecipeIdsNoRecipe ids to pin into the week.
slotRequirementsNoOne entry per dinner, in display order. Use for mixed briefs: quick slots have maxTimeMins, a slower weekend has minTimeMins and special, and a fish slot has protein fish. Empty entries mean a varied normal 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. 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"
      +}
  2. 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"
      +}
  3. Changed1 schema field changed
    • removedOutput schema / properties / debug
      Removed value: -{}
  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 by disclosing the important side effect: for a linked account with no This Week the first differing choice per dinner is taken and persisted as This Week in this call, otherwise the result stays a proposal. It also explains the account-dependent catalogue scope, that dietary rules and time limits are hard constraints, that only dinner mains are offered, and what slotIssues means. Consistent with readOnlyHint=false and non-destructive scoping.

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 purpose, then behavioural consequences, then a 'Parameters:' block, so an agent can stop reading early. The parameter paragraph is a dense run-on of semicolon-separated clauses that is harder to scan than the rest, but no sentence is truly wasted.

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 14-parameter, write-capable tool the description covers the essentials: entry-point role, draft-versus-saved behaviour, guest vs linked catalogue, hard constraints, and the slotIssues signal. With an output schema present it correctly avoids enumerating return fields and instead names only the id consumers need.

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?

With 71% schema coverage the schema carries a lot, but the description adds genuine disambiguation rather than repetition: dietary is whole-week rules only (a single vegetarian dinner belongs in a slot), maxTimeMins caps every dinner while slotRequirements can mix quick and slow, and each counted protein equals one dinner slot. Several parameters (servings, mixPreset, recipeSource, excludeRecipeIds, focusIngredients, configurationId) get no mention in the description, relying entirely on 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?

States a specific verb and resource ('Builds a draft week of dinners') and positions itself explicitly as the 'main entry point for planning dinners', naming revise_weekly_menu, get_menu_draft, save_week and create_shopping_list as downstream consumers of the returned menuDraftId. An agent can distinguish it from the revise/read siblings without opening any 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 concrete when-to-use context: broad requests like 'plan five dinners', the guest-preview path when no account is linked, and the case where a linked account with no This Week triggers an immediate save. It does not explicitly state when NOT to call it (e.g. that adjusting an existing draft belongs to revise_weekly_menu), leaving that inference to the reader.

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