Skip to main content
Glama
wp-woo-mcp

wp-woo-mcp

by Wtirliz

Update product price

update_product_price
DestructiveIdempotent

Change a simple product's regular or sale price by ID or SKU, previewing changes first with a dry run and blocking large changes unless explicitly confirmed.

Instructions

Change the regular (and optionally sale) price of a simple product, found by id or SKU. dry_run defaults to true: it only shows what would change. Run with dry_run: false only after the user agrees. Changes above the configured limit are refused unless allow_large_change is true, which needs explicit user confirmation. sale_price: a price to set, "" to remove the sale price, or omit to keep it.

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": {
      "regular_price": "<regular_price>"
    },
    "name": "update_product_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
skuNo
dry_runNo
sale_priceNo
regular_priceYesNew regular price, e.g. "1250" or "389.50"
allow_large_changeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds behavior the annotations cannot convey: a default-on preview mode, a size-based refusal threshold, and an explicit user-consent gate for overriding it. This tells the agent how to avoid an irreversible surprise rather than just that the tool is destructive.

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

Conciseness4/5

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

Short, front-loaded, and every sentence carries new information – no restating of the name or title. The compressed, telegram-style clauses for sale_price and allow_large_change read slightly tersely, but nothing is wasted.

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?

For a destructive 6-parameter mutation with no output schema, the definition covers the safety-critical decisions: preview first, how to opt into a real write, and how to clear versus preserve a sale price. It stops short of describing what the dry-run result reports or what happens on a refused large change, which would fully close the loop.

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 only 17%, so the description has to carry the load and mostly does: it explains id-vs-SKU addressing, dry_run's default and meaning, the three-way sale_price convention (value to set, "" to remove, omit to keep), and allow_large_change's role. The remaining gap is that neither field is documented as a documented constraint (e.g. whether both id and sku may be supplied, or what happens if neither is).

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?

States a specific verb and resource: change the regular (and optionally sale) price of a simple product, addressed by id or SKU. Scope is narrowed to "simple product", which tells an agent this is not a catalog-wide or variant-level operation. It does not explicitly contrast with the read-only siblings (get_product, search_products), but the mutation framing makes the distinction obvious.

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?

Gives explicit operational conditions: dry_run defaults to true and only previews, so run with dry_run: false only after the user agrees. It also states that changes above the configured limit are refused unless allow_large_change is true, which itself requires explicit user confirmation. That is a clear when/when-not plus prerequisite chain, unusual and valuable for a mutation tool.

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