create_tax_rate
Add a tax rate to WooCommerce by defining the applicable region (country, state, postcode), the rate percentage, and tax class.
Instructions
Create a tax rate. Set country/state/postcode for region, rate as percentage string (e.g. '18.0000'), and class for tax class.
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": {
"rate": "<rate>",
"name": "<name>"
},
"name": "create_tax_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name | |
| name | Yes | Tax rate name (e.g. 'GST 18%') | |
| rate | Yes | Tax rate percentage (e.g. '18.0000') | |
| class | No | Tax class slug | standard |
| state | No | State code (e.g. GJ, CA) | |
| fields | No | Comma-separated fields to return in response | |
| country | No | Country ISO 3166 code (e.g. IN, US) | |
| compound | No | Whether this is a compound rate | |
| postcode | No | Postcode or range (e.g. 396321) | |
| priority | No | Tax rate priority | |
| shipping | No | Whether rate applies to shipping |