Skip to main content
Glama

updateProduct

Destructive

Change fields of a shop product; omitted fields keep their current values. Returns the updated product. Passing options replaces them all: include every option to keep with its id from getProduct, or it is deleted. Get productId from getProducts. Leave out media: files cannot be uploaded here, so images are changed in the Spacebring admin app. Never invent UUIDs; only use values from prior tool responses.

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>",
      "product": "<product>"
    },
    "name": "updateProduct"
  }
}

Input Schema

NameRequiredDescriptionDefault
productYesProduct fields to change. Omitted fields keep their current values.
productIdYesThe id of the product.

Output Schema

NameRequiredDescriptionDefault
productYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description earns that flag by explaining exactly what is destroyed: the options array is a full replacement, and any option not re-sent with its id from getProduct is deleted. It also discloses that media is silently out of scope here and warns against fabricating UUIDs, which no structured field conveys.

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?

Six short sentences, front-loaded with the partial-update contract before the destructive array semantics and the identifier sourcing rules. No sentence is filler; each adds a distinct constraint an agent would otherwise get wrong.

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 nested, destructive update tool with an output schema, the description covers the return value briefly ('Returns the updated product') and spends its budget on the two replacement arrays where mistakes are costly. Nothing essential for a correct call is absent.

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 100%, so the baseline would be 3; the description goes further by spelling out the replace-not-merge contract for options and the reasoning for omitting media, both of which are the highest-risk fields. It does not clarify less obvious fields such as categoryRef null-ing or refundPolicy, relying on the schema for those.

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

Purpose4/5

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

The opening clause names a specific verb and resource ('Change fields of a shop product') and immediately states partial-update semantics ('omitted fields keep their current values'). It also routes the reader to getProduct/getProducts for identifiers, which separates it from read-side siblings, though it never explicitly contrasts with createProduct/deleteProduct.

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?

Concrete conditions are given: fetch productId from getProducts, take option ids from getProduct, and leave out media because images are edited in the Spacebring admin app. What is missing is a statement of when to prefer this over createProduct or the other update* tools, but the preconditions and exclusions it does state are actionable.

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