Skip to main content
Glama
AmitGurbani

mcp-server-woocommerce

by AmitGurbani

create_product

Create a new WooCommerce product with support for simple, variable, grouped, and external types. For variable products, specify attributes to enable variations.

Instructions

Create a new WooCommerce product. For variable products, set type='variable' and include attributes array, then use create_variation to add variants.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skuNoSKU
nameYesProduct name
tagsNoTag IDs
typeNoProduct typesimple
brandsNoBrand IDs
fieldsNoComma-separated fields to return in response
imagesNoImage URLs
statusNoProduct statusdraft
weightNoWeight
virtualNoVirtual product
attributesNoProduct attributes (required for variable products)
categoriesNoCategory IDs
sale_priceNoSale price
descriptionNoFull description (HTML allowed)
downloadableNoDownloadable product
manage_stockNoEnable stock management
stock_statusNoStock status
regular_priceNoRegular price
stock_quantityNoStock quantity
short_descriptionNoShort description
default_attributesNoDefault variation attributes
Behavior3/5

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

Annotations are minimal (only openWorldHint: false), so the description carries the burden. It discloses one key behavioral trait: that for variable products, the tool only creates the parent and variants must be added via create_variation. However, it does not mention other behavioral aspects such as permission requirements, response format, or side effects beyond creation.

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 two sentences, front-loaded with the primary purpose. The second sentence adds essential guidance for variable products without any fluff or repetition of schema information.

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?

Given the complexity of 21 parameters, the description provides sufficient context for the most complex scenario (variable products) and the schema covers all parameter details. No output schema exists, but the description's focus on the variable product workflow makes it quite complete for a create operation.

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 100%, so parameters are already well-documented. The description adds extra meaning by instructing to set type='variable' and include the attributes array for variable products, which reinforces the semantics of those parameters beyond the 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?

The description clearly states 'Create a new WooCommerce product' with a specific verb and resource. It also distinguishes the tool's scope by noting that for variable products, the type must be set and attributes included, then create_variation is used for variants, which differentiates it from sibling tools like update_product and delete_product.

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?

The description explicitly explains when to use this tool for variable products ('set type='variable' and include attributes array') and directs the user to an alternative tool for the next step ('then use create_variation to add variants'). This provides clear when-to-use and alternative guidance.

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