Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Import your own copy of a shared week

import_shared_week

Copies a shared week (shareCode) into the user's account: its recipes join their library and a private menu draft is created, returned as menuDraftId for review, save_week or shopping. The source week and the user's This Week are unchanged. Requires a linked Chop it 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": {
      "shareCode": "<shareCode>"
    },
    "name": "import_shared_week"
  }
}

Input Schema

NameRequiredDescriptionDefault
shareCodeYesThe intentional public share code, never a private collection or draft ID.

Output Schema

NameRequiredDescriptionDefault
noteNo
briefNo
titleYes
appUrlYes
statusYes
canUndoNo
dietaryNo
dinnersYes
messageYes
priorityNo
progressYes
recoveryNo
servingsYes
diversityNo
selectionYes
navigationNo
pantryModeNo
slotIssuesNo
dinnerCountYes
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

A3.8/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false; the description adds real value beyond that by disclosing what is created (recipes added to library, private menu draft) and what is deliberately left untouched (source week, This Week) and the account-linkage requirement. It does not address what happens on repeated imports, despite idempotentHint=false, which is the main undisclosed trait for a mutating tool.

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 dense sentences, front-loaded with the action and its outcome, then the invariant and the prerequisite. Every clause carries information an agent needs; nothing is repeated from the title.

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?

For a one-parameter import tool with an output schema, this covers the action, the returned handle, the prerequisite, and the non-effects, which is what an agent needs to select and call it. The only gap is repeat-import behavior, which matters given idempotentHint=false.

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?

There is a single required parameter with 100% schema coverage, including a pattern and an explicit warning that it is "never a private collection or draft ID." The description only echoes the parameter name in parentheses, so the schema carries nearly all semantic weight; baseline 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?

A specific verb and resource ("Copies a shared week... into the user's account") plus a concrete statement of effects: recipes join the library and a private menu draft is created and returned as menuDraftId. It differentiates itself from read-only siblings by emphasizing persistence, but never names preview_shared_week as the non-persisting alternative.

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 clear downstream routing ("for review, save_week or shopping") and a prerequisite ("Requires a linked Chop it account"). It also bounds side effects by noting the source week and This Week are unchanged, though it doesn't state when to prefer preview_shared_week instead.

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