Create a term
create_termCreate a new category, tag, or custom taxonomy term in a WordPress site. Avoid duplicate-name rejections by listing existing terms before adding.
Instructions
Create a term in any taxonomy. If a term with the same name already exists, WordPress rejects it — search with list_terms first when you might be duplicating.
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": {
"name": "<name>"
},
"name": "create_term"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Term meta, for keys registered with show_in_rest. | |
| name | Yes | Display name of the term. | |
| slug | No | URL slug. Derived from the name if omitted. | |
| parent | No | Parent term ID. Hierarchical taxonomies only — passing this on a flat taxonomy such as tags is an error. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| taxonomy | No | Taxonomy to create the term in. | category |
| description | No | Longer descriptive text. |