Skip to main content
Glama

wp_update_term

Update an existing WordPress term by changing its name, slug, parent, or description. Use dry-run mode to preview changes before applying, ensuring safe edits.

Instructions

Rename or re-parent one existing term.

fields is an object of field -> value; only name, slug, parent and description can be changed and anything else is refused. CHANGING A SLUG CHANGES THAT TERM'S ARCHIVE URL (/category/old/ starts 404ing), so treat it like wp_change_slug. Passing no fields at all is refused rather than reported as a no-op success. term_id comes from wp_list_terms. DEFAULTS TO dry_run=true (returns a preview of the exact fields; writes nothing). Pass dry_run=false to apply. Requires the REST transport. Prod writes require allow_prod=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsYes
dry_runNo
installYes
term_idYes
taxonomyYes
allow_prodNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.4.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries full responsibility and does well: it explains slug changes affect archive URLs, dry-run previews exact changes, production writes require allow_prod, and invalid field sets are refused.

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?

Every sentence serves a purpose and adds critical operational detail. The formatting with backticks and line breaks improves scannability without sacrificing clarity.

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?

The description covers the tool's behavior, safety defaults, production safeguards, and what a dry run returns. Given the absence of an output schema, it provides enough context for an agent to invoke the tool correctly.

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?

The schema has no property descriptions, but the description compensates for most parameters: fields allowed values, dry_run behavior and default, term_id source, and allow_prod guard. It does not explicitly describe install or taxonomy, though taxonomy is inferable.

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 clearly states the tool renames or re-parents one existing term, distinguishing it from creation or deletion tools. It also identifies the resource as an existing term and references wp_list_terms for obtaining the ID.

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?

Provides strong usage guidance: allowed field values, no-op refusal, dry-run default, REST transport requirement, and the allow_prod guard. It does not explicitly name alternative sibling tools, but the 'existing term' wording makes the intended use case clear.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ad02/wp-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server