Skip to main content
Glama

Update product

update_product

Updates product with given productID.

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": {
      "productID": "<productID>"
    },
    "name": "update_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceNoCan be decimal, integer, empty or a string.
stockNoSet to 0 for infinite stock or disabled stock.
statusNoAccepted values: Available, Available but not online, Pre-order, Sold Out, Invisible, Customers only, Price visible for customers, Choose property, Hide status, custom0, custom1, ..., custom9.
categoryNoThe name of the category in the default language of the webshop. Not applicable for product variations.
image:noNoInclude an image URL to upload product photos. The first image is the main photo, the next four are sub photos. When a product photo already exists, it will be replaced. After uploading, the images will be scaled proportionally according to the webshop settings, thumbnails will be created automatically and the image will be synchronized to multiple file servers. Make sure that each image has a valid URL, a maximum file size of 25MB, a valid extension (.jpg, .jpeg, .png or .gif) and a valid MIME type (image/jpeg, image/jpg, image/png, image/gif).
name:langNoProduct name. You can set names and descriptions for all languages, even if they are not activated in the webshop. Available languages (ISO 639-1): cs, da, de, el, en, es, fi, fr, it, ja, ko, nl, no, pl, pt, ro, ru, sv, tr, zh.
productIDYesA unique and user defined identifier for the product.
description:langNoProduct description. Same languages as name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "productID"
      +]
  2. Added

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and it discloses almost nothing. It does not state whether this is a partial or full replacement update, whether omitted fields are left untouched or cleared, whether the operation is reversible, or what permissions are needed. The only behavioral signal is the implicit mutation from the verb "updates."

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no wasted words, which is structurally sound. But the terseness crosses into under-specification for a mutating tool with eight parameters, so brevity here is not fully earned.

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

Completeness2/5

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

For an eight-parameter mutation tool with no annotations and no output schema, the description is far too thin. It never explains that this modifies an existing product, what happens to fields not supplied, or any side effects such as image replacement and file-server synchronization that the schema hints at.

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?

Schema description coverage is 100%, so most parameters (status enum, image upload rules, language codes, stock semantics) are already well documented in the schema. The description adds nothing beyond noting productID is the key, which is consistent with the baseline of 3 when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Updates product with given productID" names a specific verb (updates) and resource (product) and identifies the keying parameter. However, it offers no differentiation from the obvious siblings create_product, delete_product, and get_product, and gives no hint of what the update covers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of prerequisites, and no pointer to alternatives such as create_product for new items. The agent must infer from the name alone that this is the mutation path for existing products.

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