Skip to main content
Glama

Frontman for WordPress

wc_update_tax_rate

Destructive

Updates a WooCommerce tax rate. Ask the user for confirmation before calling with confirm=true. Mirrors woocommerce-mcp-server method update_tax_rate using local WordPress authentication; no WooCommerce REST API keys are required.

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_id": "<site_id>",
      "rateId": "<rateId>",
      "taxRateData": "<taxRateData>",
      "confirm": "<confirm>"
    },
    "name": "wc_update_tax_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateIdYesThe tax rate ID.
confirmYesMust be true only after the user explicitly confirms this WooCommerce mutation.
site_idYesThe connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID.
taxRateDataYesTax rate fields to update.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is known. The description usefully adds the human-confirmation workflow and the local WordPress auth model (no REST keys needed), but says nothing about what the update destroys, whether unspecified fields are cleared, or how failures surface for a destructive, non-idempotent mutation.

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?

Three short sentences, front-loaded with the action and followed by the confirmation requirement and auth note. The trailing sentence about mirroring the server method is mildly implementation-flavored but does convey the auth model, so little is wasted.

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

Completeness2/5

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

For a destructive, non-idempotent mutation with no output schema and an untyped nested payload, the definition leaves the agent guessing which taxRateData fields are accepted and what a successful response contains. The confirmation rule is covered, but the operational contract is not.

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 coverage is 100% at the top level, so site_id, rateId, confirm and taxRateData are already documented, and the description adds nothing beyond them. The nested taxRateData object declares no properties, so the actual updatable field names remain unspecified in both schema and description — a real gap the description could have closed.

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: "Updates a WooCommerce tax rate." An agent can distinguish it from wc_create_tax_rate, wc_get_tax_rate and wc_delete_tax_rate by the verb alone, though the description never explicitly names those siblings or their boundaries.

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 only usage guidance is the confirmation gate ("Ask the user for confirmation before calling with confirm=true"), which is a precondition rather than when-to-use guidance. There is no instruction to fetch the existing rate first with wc_get_tax_rate, no guidance on partial vs full updates, and no exclusion of the create/delete siblings beyond what the name implies.

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.