Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Mark shopping ingredients covered

update_shopping_list
Idempotent

Ticks off, unticks or partly covers lines on a shopping list ('I already have rice', 'I only need 200g more'). Takes shoppingListId, expectedRevision and changes keyed by line ID (excluded or coveredQuantity), all from get_shopping_list. Changes only what to buy; recipes and pantry are untouched. Repeating the same values is safe; a revision conflict means the list changed and get_shopping_list has the new 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": {
      "shoppingListId": "<shoppingListId>",
      "expectedRevision": "<expectedRevision>",
      "changes": "<changes>"
    },
    "name": "update_shopping_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYes
shoppingListIdYesThe exact shopping list to read or update. Never infer the list from an old widget.
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
noteNo
countsNo
sourceNo
readOnlyNo
revisionNo
sectionsYes
recipeIdsNo
recipeServingsNo
shoppingListIdYes
shopIntelligenceNo
sourceMenuDraftIdNo
remainingItemCountNo
localStateAvailableNoFalse for app-week reads: browser-only ticks, extras and serving overrides are unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / sections / items / properties / items / items / properties / retailerTarget
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "quantity": {
      +          "type": "number"
      +        },
      +        "unit": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "quantity",
      +        "unit"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed3 schema fields changed
    • addedOutput schema / properties / localStateAvailable
      Added value: +{
      +  "description": "False for app-week reads: browser-only ticks, extras and serving overrides are unavailable.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / readOnly
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / source
      Added value: +{
      +  "const": "current_week",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it explains optimistic concurrency semantics (expectedRevision and what a conflict implies), confirms retry safety in plain language, states the authorization prerequisite, and bounds the mutation surface to purchase quantities only. This is exactly the contextual detail an agent needs to recover from a failed call, which annotations alone cannot convey.

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 the action and examples, then requirements, then conflict behavior — a sensible order with no filler sentences. It is dense, packing scope, auth and concurrency into four sentences, which borders on cramped but every clause carries information.

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 three-parameter mutation tool with an output schema, the description covers action, scope limits, idempotency, concurrency failure handling and account prerequisites. Nothing an agent needs to invoke it correctly or recover from an error is missing, and return values are rightly left to 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 description coverage is only 33%, but the description compensates by naming all three parameters, their provenance (from get_shopping_list) and the meaning of the changes array keyed by line ID. expectedRevision, which has no schema description, is given semantics via the conflict explanation. It does not add much beyond the schema for excluded and coveredQuantity, which are already well documented inline.

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 description opens with a precise verb set and resource: ticking, unticking or partly covering lines on a shopping list, backed by concrete examples ('I already have rice', 'I only need 200g more'). It also draws explicit boundaries against siblings by stating 'Changes only what to buy; recipes and pantry are untouched', which separates it from update_recipe and update_pantry without naming them.

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?

It states the preconditions and data source clearly: all identifiers and revision come from get_shopping_list, and a linked Chop it account is required. The conflict-recovery path is spelled out ('a revision conflict means the list changed and get_shopping_list has the new revision'). What is missing is an explicit statement of when not to use this tool, though the scope sentence covers most of that implicitly.

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