woo_create_attribute
Create a global WooCommerce product attribute taxonomy (pa_{slug}) for a site so products can reuse shared attribute terms; set name, slug, type, sort order, and archives.
Instructions
Create a global product attribute (taxonomy pa_{slug})
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>",
"name": "<name>"
},
"name": "woo_create_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Attribute name (label) | |
| site | Yes | Site id (see list_sites) | |
| slug | No | Slug, max 28 chars (default: derived from name) | |
| type | No | Attribute type (default "select"; plugins may add others) | |
| order_by | No | Default term sort order (default menu_order) | |
| has_archives | No | Enable archive pages for terms (default false) |