Skip to main content
Glama

mcp_assign_terms

Assign taxonomy terms such as categories or tags to a WordPress post using term IDs, slugs, or names, with an optional append mode to add terms instead of replacing them.

Instructions

Assign taxonomy terms to a post. Terms can be IDs, slugs or names; slugs/names that match no term are skipped silently.

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>",
      "post_id": "<post_id>",
      "taxonomy": "<taxonomy>",
      "terms": "<terms>"
    },
    "name": "mcp_assign_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
termsYesTerm IDs, slugs or names (an empty array with append false removes all terms)
appendNoAppend to existing terms instead of replacing them (default false)
post_idYesPost ID
taxonomyYesTaxonomy name (e.g. category, post_tag, product_cat)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv3.14.0
    • removedInput schema / properties / append / default
      Removed value: -false
    • changedInput schema / properties / append / description
      Previous value: -"Append to existing terms (false = replace)"New value: +"Append to existing terms instead of replacing them (default false)"
    • changedInput schema / properties / post_id / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / taxonomy / description
      Previous value: -"Taxonomy name"New value: +"Taxonomy name (e.g. category, post_tag, product_cat)"
    • addedInput schema / properties / taxonomy / pattern
      Added value: +"^[a-zA-Z0-9_-]+$"
    • changedInput schema / properties / terms / description
      Previous value: -"Array of term IDs"New value: +"Term IDs, slugs or names (an empty array with append false removes all terms)"
    • addedInput schema / properties / terms / items / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / terms / items / type
      Removed value: -"number"
  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: -[
      -  "post_id",
      -  "taxonomy",
      -  "terms"
      -]New value: +[
      +  "site",
      +  "post_id",
      +  "taxonomy",
      +  "terms"
      +]
  3. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one genuinely useful trait beyond the schema: unmatched slugs/names are skipped silently rather than raising an error. It does not cover permissions, behavior when the post does not exist, or whether replacement is destructive beyond what the schema already notes.

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?

Two short sentences, both front-loaded with the most important information (what it does, then the accepted identifier forms and the failure mode). No filler.

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?

The input schema is fully documented and the description covers the main non-obvious behavior, which is enough for an agent to call it correctly. It omits return-value expectations (no output schema exists) and any error or permission preconditions.

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 baseline is 3. The statement that terms can be IDs, slugs or names largely restates the schema's own 'terms' description; the only meaning added is the silent-skip behavior for non-matching strings.

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: 'Assign taxonomy terms to a post.' That is unambiguous and clearly distinct from sibling operations such as mcp_create_term or mcp_list_terms. It stops short of naming any sibling, so it lands at a clear-but-undifferentiated 4.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no mention of when to prefer this over mcp_create_term (which would create the term first). Usage is only implied by the purpose sentence.

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