Skip to main content
Glama

woo_bulk_update_stock

Updates stock quantities and statuses for multiple WooCommerce products in one request, changing only the fields you provide per product.

Instructions

Bulk update product stock; per product only the given fields change

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": {
      "site": "<site>",
      "products": "<products>"
    },
    "name": "woo_bulk_update_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
productsYesProducts with stock updates

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv3.14.0
    • changedInput schema / properties / products / description
      Previous value: -"Array of products with stock updates"New value: +"Products with stock updates"
    • addedInput schema / properties / products / items / properties / id / description
      Added value: +"Product or variation ID"
    • changedInput schema / properties / products / items / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / products / items / properties / stock_quantity / description
      Added value: +"New stock quantity"
    • changedInput schema / properties / products / items / properties / stock_quantity / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / products / items / properties / stock_status / description
      Added value: +"New stock status"
    • addedInput schema / properties / products / items / properties / stock_status / enum
      Added value: +[
      +  "instock",
      +  "outofstock",
      +  "onbackorder"
      +]
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "products"
      -]New value: +[
      +  "site",
      +  "products"
      +]
  3. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses partial-update semantics ('only the given fields change'), which prevents an agent from assuming a full overwrite, but it says nothing about permissions, rate limits, or how per-product failures are reported for a mutation tool.

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?

A single front-loaded sentence with two clauses, each carrying distinct information (the operation and the partial-update rule). No filler, no redundancy.

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

Completeness3/5

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

For a two-parameter mutation tool with a nested products array and no annotations or output schema, the definition covers the essentials: what it does and that updates are partial. It remains silent on the response shape, whether the call is atomic or per-item, and what happens with invalid IDs.

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 is 3, but the phrase 'per product only the given fields change' adds real meaning beyond the schema: it explains that omitted optional fields (stock_quantity vs stock_status) are preserved rather than cleared. That is a meaningful interpretation note the schema alone does not convey.

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?

'Bulk update product stock' gives a specific verb and resource, and the clause about only the given fields changing clarifies the operation's scope. It does not, however, distinguish this tool from the single-record siblings like woo_update_product or woo_update_variation, so the agent must infer the boundary.

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

Usage Guidelines3/5

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

The word 'bulk' implies using this when touching multiple products at once, but there is no explicit when-to-use/when-not statement and no named alternative for single-product edits. Usage is implied rather than stated.

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

Deploy Server

Other Tools