Skip to main content
Glama

wordpress_set_terms

Destructive

[WRITE — changes your live site] Set or add categories and tags on a post, by name or id. Missing names are created unless create_missing is false. Requires confirm:true.

Input Schema

NameRequiredDescriptionDefault
idYesPost id
modeNoreplace (default) sets exactly these; add keeps the existing ones
tagsNoTag names or numeric ids
confirmNoMust be true. Confirm the change with the user first; this acts on their live site.
categoriesNoCategory names or numeric ids, e.g. ["News", "12"]
create_missingNoCreate categories/tags that don't exist yet (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the bar is lower, and the description still adds genuine value: it discloses that missing names are created as a side effect (unless create_missing is false) and that confirm:true is mandatory before touching the live site. It stops short of saying that replace mode discards existing terms, which is the most consequential side effect.

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?

Three short sentences with zero filler, and the most important fact — this is a write to the live site — is front-loaded in a bracketed marker. The confirm requirement and creation side effect follow in dependency order.

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?

For a six-parameter mutation tool with no output schema and full schema coverage, the description covers the risk profile, the confirmation gate, and the implicit creation side effect. The one gap is that replace-as-default (which can remove existing taxonomy assignments) is left to the schema rather than surfaced in prose.

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 coverage is 100%, so the schema already documents all six parameters, including the mode enum and create_missing default. The description reinforces the name-or-id input format and the auto-creation behavior but adds no syntax or default detail beyond the schema; baseline 3 applies.

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?

States a specific verb and resource ('Set or add categories and tags on a post') plus the accepted identifier forms ('by name or id'). It is clearly distinguishable from siblings like wordpress_update_post or wordpress_list_taxonomies, though it never names an alternative explicitly.

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 prefix '[WRITE — changes your live site]' and the 'Requires confirm:true' clause tell the agent this is a live mutation needing user confirmation, which is real usage context. However, there is no guidance on when to prefer this over wordpress_update_post for content changes, or when replace vs add is appropriate (that is left entirely to the schema).

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