Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Save week

save_week
Idempotent

Canonical saving operation. Saves a completed menu draft (every dinner selected) as a reusable Saved Week, keeping the exact recipes, order, slot labels, locks and per-dinner servings. Returns savedWeekId alongside the menuDraftId; create_shopping_list accepts that same menuDraftId, and open_saved_week recreates the draft from savedWeekId if the draft has expired. Leaves This Week unchanged and creates no shopping list. Idempotent: saving the same draft revision again returns the same Saved Week (status already_saved). A draft changed since it was read returns a conflict; get_menu_draft then gives the current revision. 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": {
      "menuDraftId": "<menuDraftId>"
    },
    "name": "save_week"
  }
}

Input Schema

NameRequiredDescriptionDefault
menuDraftIdYes

Output Schema

NameRequiredDescriptionDefault
stateYes
titleYes
appUrlYes
statusYes
messageYes
diversityYes
dinnerCountYes
menuDraftIdYes
savedWeekIdYes
allowedNextActionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the supplied annotations: it names the success payload (savedWeekId plus menuDraftId), defines idempotent behavior concretely with the 'already_saved' status, specifies the stale-revision conflict and the recovery path via get_menu_draft, and states side effects (This Week unchanged, no shopping list created). That is the kind of mutating-side-effect and auth detail an agent needs before writing.

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?

Front-loads 'Canonical saving operation' then sequences outcome, follow-up routes, side effects, idempotency/conflict semantics, and auth. Every sentence carries distinct information and nothing is redundant with the title or schema.

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 single-parameter mutation with an output schema, the description covers preconditions, idempotency, conflict resolution, side effects and auth. Return values are already documented by the output schema, so no further explanation is needed.

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 0% for the single menuDraftId parameter, so the description must carry the meaning — and it does, tying the ID to a specific draft revision, noting the same ID is accepted by create_shopping_list, and warning that a changed draft returns a conflict resolvable via get_menu_draft. It never states the ID format or origin explicitly (e.g. from get_menu_draft), leaving a small gap.

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 ('saves a completed menu draft ... as a reusable Saved Week') and spells out exactly what state carries over (recipes, order, slot labels, locks, servings). It also contrasts itself with siblings by naming create_shopping_list, open_saved_week and get_menu_draft, so an agent can distinguish it without opening other schemas.

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 a clear precondition (draft must be complete, every dinner selected) and a prerequisite (linked Chop it account), plus routing hints to create_shopping_list, open_saved_week and get_menu_draft for follow-up cases. It does not explicitly say when to prefer a different save tool (e.g. save_menu) or state a when-not condition, so it stops short of a full 5.

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