Skip to main content
Glama

Change a term

wp_update_term
Destructive

Change the name, slug, description or parent of an existing term; term_id and taxonomy identify it. Only the fields passed change, the others keep their values. Returns {updated: true, term_id}; an unknown term returns an error. Needs the taxonomy's right to edit terms (for categories and tags: manage_categories) and the right to edit this term (edit_term), which a site can withhold for single terms. Where the permalink structure uses slugs, a new slug changes the URL of the term's archive, and WordPress does not redirect the old one. The term's custom meta is not changed here. Forwarded by AlphaBridge Connect to the one site this connection reaches.

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": {
      "term_id": "<term_id>",
      "taxonomy": "<taxonomy>"
    },
    "name": "wp_update_term"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew display name. When omitted, it stays as it is; an empty name is refused.
slugNoNew URL slug. When omitted, it stays as it is; an empty string derives it from the name, made unique if taken. A slug another term of the taxonomy uses is refused, unless parent changes in the same call (WordPress then makes it unique).
parentNoId of the new parent term; 0 moves the term to the top level. A parent that does not exist is refused. When omitted, it stays as it is.
term_idYesId of the term to change, as wp_list_terms or wp_get_term return it.
taxonomyYesTaxonomy the term belongs to, e.g. "category" or "post_tag".
descriptionNoNew description; an empty string clears it. When omitted, it stays as it is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / description / description
      Added value: +"New description; an empty string clears it. When omitted, it stays as it is."
    • addedInput schema / properties / name / description
      Added value: +"New display name. When omitted, it stays as it is; an empty name is refused."
    • addedInput schema / properties / parent / description
      Added value: +"Id of the new parent term; 0 moves the term to the top level. A parent that does not exist is refused. When omitted, it stays as it is."
    • addedInput schema / properties / slug / description
      Added value: +"New URL slug. When omitted, it stays as it is; an empty string derives it from the name, made unique if taken. A slug another term of the taxonomy uses is refused, unless parent changes in the same call (WordPress then makes it unique)."
    • addedInput schema / properties / taxonomy / description
      Added value: +"Taxonomy the term belongs to, e.g. \"category\" or \"post_tag\"."
    • addedInput schema / properties / term_id / description
      Added value: +"Id of the term to change, as wp_list_terms or wp_get_term return it."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: it discloses permission requirements (taxonomy edit terms, edit_term, which can be withheld per-term), that a new slug breaks the archive URL with no redirect, the exact return shape, and error behavior for unknown terms. That is precisely the kind of irreversible side effect an agent needs before mutating.

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?

Single front-loaded paragraph with purpose first, then mutation semantics, return value, permissions, and caveats. Dense but essentially every sentence carries decision-relevant information; length is justified by the tool's risk profile, though it could be split for scanability.

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

Completeness5/5

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

With no output schema, the description supplies the return contract ({updated: true, term_id} or an error), the authorization prerequisites, and the URL side effect. Nothing material is missing for a destructive, non-idempotent mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds genuinely new semantics by explaining that omitted fields keep their values (partial update). It does not restate the per-field rules, but those are already well documented in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Change the name, slug, description or parent of an existing term') and names the identifying keys. It also draws a boundary against the sibling wp_update_term_meta by stating custom meta is not changed here, so an agent can discriminate without opening schemas.

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

Usage Guidelines4/5

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

Gives clear when-to-use context: for an existing term, with partial-update semantics ('only the fields passed change') and an explicit exclusion that meta updates belong elsewhere. It lacks an explicit pointer to wp_update_term_meta or wp_create_term by name, which would earn a 5.

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.

Resources