Skip to main content
Glama
AmitGurbani

mcp-server-woocommerce

by AmitGurbani

update_product

Idempotent

Modify existing WooCommerce products by updating specific fields like price, stock, attributes, categories, and images. Partial updates only change specified fields; setting images replaces all existing ones.

Instructions

Update an existing product. Only include fields you want to change. Note: setting images replaces all existing images.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesProduct ID
skuNoSKU
nameNoProduct name
tagsNoTag IDs
typeNoProduct type
brandsNoBrand IDs
fieldsNoComma-separated fields to return in response
imagesNoImage URLs
statusNoProduct status
weightNoWeight
attributesNoProduct attributes
categoriesNoCategory IDs
sale_priceNoSale price
descriptionNoFull description
manage_stockNoEnable stock management
stock_statusNoStock status
regular_priceNoRegular price
stock_quantityNoStock quantity
short_descriptionNoShort description
default_attributesNoDefault variation attributes
Behavior4/5

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

Annotations provide idempotentHint=true and openWorldHint=false, but no destructive hint. The description adds the critical behavioral trait that setting images replaces all existing images, beyond what annotations convey. It does not elaborate on other side effects, but the most important one is covered.

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?

Three short sentences, each earning its place: the action, the partial-update guidance, and the critical image replacement warning. No redundancy or fluff.

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

Completeness4/5

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

The tool has 20 parameters and no output schema, but the schema is self-documenting. The description provides the necessary behavioral warning and usage pattern. It falls short of explaining return value or explicitly distinguishing from update_variation, but it is sufficient for an update tool with rich schema coverage.

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 descriptions cover 100% of parameters, so baseline is 3. The description adds meaningful semantics about the 'images' parameter (replaces all existing) and sets an overall expectation for partial updates. This goes beyond the schema's simple 'Image URLs' description.

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 clearly states the action ('Update') and the resource ('existing product'). It differentiates from create_product and other product tools by using 'existing'.

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 gives explicit usage guidance: 'Only include fields you want to change' implies partial update semantics. The warning about images replacing existing images is a key usage caution. It does not explicitly mention alternatives, but the use case is straightforward for a product update tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AmitGurbani/mcp-server-woocommerce'

If you have feedback or need assistance with the MCP directory API, please join our Discord server