Skip to main content
Glama

update_product

Edit a product's catalog details: fix typos, change category, shelf, or set minimum stock. Only specified fields change; stock amounts remain unaffected.

Instructions

Edit an existing product's catalog record.

For fixing a typo, recategorising something, moving its default shelf, or setting a minimum stock level. Only the arguments given are changed. This does not touch stock amounts — use add_stock, consume_product or correct_stock for those.

Args: product: Product name, description fragment, or barcode identifying the product to edit. name: New name. description: New description — brand, size, variant. category: New product group, exact name. See get_conventions. location_id: New default location, id or exact name. unit: New stock unit. Refused while any stock is on hand, since Grocy would reinterpret the existing amount in the new unit — 2 Packs silently becoming 2 Grams. Consume to zero first, or create a separate product. min_stock: Minimum to keep on hand, in the product's stock unit. Zero clears it. This is what below_min_stock and add_missing_to_shopping_list read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
unitNo
productYes
categoryNo
min_stockNo
descriptionNo
location_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden. It discloses that only provided arguments are changed (partial update), and crucially explains the unit-change failure mode: 'Refused while any stock is on hand... 2 Packs silently becoming 2 Grams.' It also notes that min_stock is read by below_min_stock and add_missing_to_shopping_list, providing important side-effect context.

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?

The description is well-structured: a clear summary sentence, an explicit scope statement, and a compact argument list. Every sentence adds value—the unit constraint and min_stock note are not fluff. It is front-loaded with purpose and alternatives, and the argument documentation is organized and readable.

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 7-parameter tool with no output schema, this description covers all necessary aspects: purpose, alternatives, parameter semantics, behavioral nuances, and caveats. An agent could confidently invoke this tool correctly without further information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must fully document each parameter. It does so thoroughly: product (name/description fragment/barcode), name, description (brand, size, variant), category (exact name, see get_conventions), location_id (id or exact name), unit (with constraint), and min_stock (meaning and clearing behavior). Each parameter gains meaning beyond the raw 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 ('Edit an existing product's catalog record') and enumerates concrete use cases (typo, recategorising, moving shelf, min stock). It explicitly differentiates itself from stock-related tools by naming add_stock, consume_product, and correct_stock, so an agent can immediately identify when this tool is the right choice.

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?

Provides explicit when-to-use and when-not-to-use guidance: 'For fixing a typo, recategorising something, moving its default shelf, or setting a minimum stock level' and 'This does not touch stock amounts — use add_stock, consume_product or correct_stock for those.' It also points to get_conventions for the category parameter, giving the agent a clear routing strategy.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.