Skip to main content
Glama

Update a term

update_term

Update a term's name, slug, description, parent, or meta in any taxonomy. Changing a slug updates the term archive URL.

Instructions

Update a term's name, slug, description, parent or meta in any taxonomy. Changing a slug changes the term archive URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe term ID to update.
metaNoCustom fields as key/value pairs, for keys registered with show_in_rest.
nameNoDisplay name.
slugNoURL slug.
parentNoParent term ID, or 0 for none. Hierarchical taxonomies only.
site_idNoWhich 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.
taxonomyNoTaxonomy slug or REST base (category, post_tag/tags, or a custom one).category
descriptionNoLonger descriptive text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / id / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / id / minimum
      Added value: +-9007199254740991
    • addedInput schema / properties / meta / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / parent / description
      Previous value: -"Parent ID, or 0 for none."New value: +"Parent term ID, or 0 for none. Hierarchical taxonomies only."
    • addedInput schema / properties / parent / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / parent / minimum
      Added value: +0
  2. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish the mutation profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false), and the description adds genuinely non-derivable behavior: 'Changing a slug changes the term archive URL' discloses a URL/SEO side effect of a specific field. It stops short of covering capability requirements or reversibility, but with annotations present, the added context is meaningful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no filler: the first front-loads verb, resource, and field scope; the second adds the single most important behavioral caveat. Every word earns its place for an 8-parameter tool.

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

Completeness4/5

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

Given the 8-parameter complexity, the schema is rich enough to cover parameter semantics and annotations carry the safety profile, so the description does not need to explain return values or basic mutation behavior. Minor gaps remain (no capability/permission note, no pointer to discover_taxonomies for valid taxonomy slugs), but nothing blocks safe selection and invocation.

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 the schema already documents all 8 parameters, including site_id's multi-site behavior and parent's hierarchical-taxonomy restriction. The description only echoes the field list already present in the schema and adds no new parameter-level meaning, landing at the baseline of 3.

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?

The description pairs a specific verb ('Update') with a precise resource ('a term') and enumerates the mutable fields (name, slug, description, parent, meta) plus the scope ('in any taxonomy'). The term-specific fields clearly differentiate it from the many other update_* siblings like update_content, update_menu, or update_user.

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

Usage Guidelines3/5

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

The usage context is implied through the verb and title — modify an existing term — and the 'in any taxonomy' scope statement adds context. However, there is no explicit when-to-use vs when-not-to-use guidance, and no alternatives (e.g., create_term for new terms, delete_term for removal) are named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools