Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Make a saved week This Week

set_this_week
DestructiveIdempotent

Makes a Saved Week the user's This Week (the week the Chop it app shows for cooking) as an independent working copy with the same servings. Replaces the current This Week; the Saved Week stays reusable. Returns the working copy servings, or null when unset. To change portions, open_saved_week, revise_weekly_menu with servings, save_week, then activate that exact new savedWeekId. Suits a request to make a saved week the current one. 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": {
      "savedWeekId": "<savedWeekId>"
    },
    "name": "set_this_week"
  }
}

Input Schema

NameRequiredDescriptionDefault
savedWeekIdYes

Output Schema

NameRequiredDescriptionDefault
stateYes
appUrlYes
statusYes
messageYes
servingsYes
savedWeekIdYes
recipeServingsYes
activeCollectionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / recipeServings
      Added value: +{
      +  "additionalProperties": {
      +    "type": "number"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / savedWeekId
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / servings
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "status",
      -  "activeCollectionId",
      -  "state",
      -  "message",
      -  "appUrl"
      -]New value: +[
      +  "status",
      +  "activeCollectionId",
      +  "state",
      +  "message",
      +  "appUrl",
      +  "savedWeekId",
      +  "servings",
      +  "recipeServings"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: what gets replaced (the current This Week), what survives (the Saved Week remains reusable), the copy semantics (same servings, independent working copy), the auth prerequisite (linked Chop it account), and the null return when unset. This exceeds the destructiveHint/idempotentHint flags, though it does not say whether the previous This Week is recoverable after replacement.

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-loads the core action and its copy/replace semantics, then layers workflow guidance and the auth requirement. Dense but nearly every sentence carries information; the line 'Suits a request to make a saved week the current one' mildly restates the opening.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the action, side effects, prerequisites, and a return-value hint even though an output schema exists. However, with a destructive replacement operation it omits whether the prior This Week can be restored and whether any confirmation is expected, leaving a meaningful gap for a mutation tool.

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% and the single savedWeekId parameter is only typed as a uuid, but the description adds meaning by tying it to the workflow ('activate that exact new savedWeekId'), implying it must be a saved week identifier obtained from save_week rather than a stale or arbitrary ID.

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 precise verb+resource ('Makes a Saved Week the user's This Week') and immediately qualifies the semantics: an independent working copy with the same servings that replaces the current This Week while the Saved Week stays reusable. This clearly distinguishes it from open_saved_week (which does not copy) and from save_week.

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?

Gives an explicit when-to-use ('Suits a request to make a saved week the current one') and an explicit alternative workflow when the intent differs: open_saved_week, revise_weekly_menu with servings, save_week, then activate the new savedWeekId. The agent knows both the matching and the non-matching intent paths.

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