Skip to main content
Glama

Frontman for WordPress

wc_create_tax_class

Creates a WooCommerce tax class. Mirrors woocommerce-mcp-server method create_tax_class 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>",
      "taxClassData": "<taxClassData>"
    },
    "name": "wc_create_tax_class"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID.
taxClassDataYesTax class fields to create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, closed-world mutation, so the safety profile is covered structurally. The description adds genuinely useful auth context — local WordPress authentication, no WooCommerce REST API keys required — but says nothing about duplicate-name behavior, error cases, or what a successful creation returns.

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?

Two short sentences with the core action front-loaded and no wasted preamble. The second sentence about mirroring the upstream create_tax_class method and the auth model is somewhat implementation-meta, but it earns its place by explaining the authentication story.

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?

This is a mutation tool with no output schema and a free-form nested taxClassData object whose accepted fields are entirely undocumented anywhere. The description does not disclose the field set an agent must supply or confirm what the response contains, so an agent still faces material guesswork about how to call it correctly.

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 100%, so baseline is 3; the description only restates that taxClassData holds "tax class fields to create." Since taxClassData is an untyped object with empty properties (additionalProperties: true), naming likely fields such as name or slug would have added real value, and the description does not.

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?

The description opens with a specific verb+resource: "Creates a WooCommerce tax class." This clearly distinguishes the tool's resource type (a tax class) from rate-oriented siblings such as wc_create_tax_rate or wc_get_tax_classes, but it never explicitly contrasts itself with them, leaving the differentiation to the reader's inference.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites (e.g., tax classes typically must exist before tax rates can reference them), and no mention of alternatives such as wc_create_tax_rate. The only procedural hint, calling list_sites first, lives in the schema rather than the description.

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.