Skip to main content
Glama

wp_update_category

Update a WordPress category by ID, changing only the fields you specify such as name, slug, parent, description, or meta.

Instructions

Update a category (only the given fields change)

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>",
      "id": "<id>"
    },
    "name": "wp_update_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCategory ID
metaNoRegistered term meta fields (show_in_rest) as key/value
nameNoCategory name
siteYesSite id (see list_sites)
slugNoURL slug
parentNoParent category ID (0 = top level)
descriptionNoDescription

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.14.0
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / meta
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Registered term meta fields (show_in_rest) as key/value",
      +  "type": "object"
      +}
    • changedInput schema / properties / parent / description
      Previous value: -"Parent category ID"New value: +"Parent category ID (0 = top level)"
    • changedInput schema / properties / parent / type
      Previous value: -"number"New value: +"integer"
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful PATCH-style semantics: 'only the given fields change', so omitted fields are preserved rather than nulled. Beyond that it says nothing about permissions, validation failures, or whether the update is reversible, leaving real gaps for a mutation tool.

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?

A single seven-word sentence, front-loaded with the verb and resource, and the parenthetical carries the only non-obvious fact. No padding, though the extreme terseness leaves the definition thin rather than wasteful.

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

Completeness2/5

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

This is a 7-parameter mutation with a nested meta object, no annotations, and no output schema. The description never says what a successful response looks like or how partial failures on meta fields are handled, so it is under-specified for the tool's complexity.

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% and every parameter including the nested 'meta' object is documented in the schema with units/format notes (e.g. parent 0 = top level). The description adds no parameter-level detail beyond that, so this sits at the high-coverage baseline.

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

Purpose4/5

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

The description states a specific verb and resource ('Update a category'), which is immediately distinguishable from the wp_create_category / wp_delete_category siblings. It does not explicitly differentiate itself from wp_update_tag or woo_update_category, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over woo_update_category or wp_update_tag, nor any stated prerequisites (the required 'site' and 'id' must be resolved first). Usage is only implied by the tool name.

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