Skip to main content
Glama

mcp_create_term

Creates a term in any WordPress taxonomy, such as categories, tags, or product categories, from a site ID, taxonomy name, and term name.

Instructions

Create a term in any taxonomy

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>",
      "taxonomy": "<taxonomy>",
      "name": "<name>"
    },
    "name": "mcp_create_term"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTerm name
siteYesSite id (see list_sites)
slugNoURL slug (derived from the name if omitted)
parentNoParent term ID for hierarchical taxonomies (default 0 = none)
taxonomyYesTaxonomy name (e.g. category, post_tag, product_cat)
descriptionNoTerm description, plain text (default empty)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv3.14.0
    • removedInput schema / properties / description / default
      Removed value: -""
    • changedInput schema / properties / description / description
      Previous value: -"Term description"New value: +"Term description, plain text (default empty)"
    • removedInput schema / properties / parent / default
      Removed value: -0
    • changedInput schema / properties / parent / description
      Previous value: -"Parent term ID (for hierarchical taxonomies)"New value: +"Parent term ID for hierarchical taxonomies (default 0 = none)"
    • addedInput schema / properties / parent / minimum
      Added value: +0
    • changedInput schema / properties / parent / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / slug / description
      Previous value: -"URL slug"New value: +"URL slug (derived from the name if omitted)"
    • 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_-]+$"
  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: -[
      -  "taxonomy",
      -  "name"
      -]New value: +[
      +  "site",
      +  "taxonomy",
      +  "name"
      +]
  3. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and provides almost none of it. "Create" signals a mutation, but there is no statement about required capabilities, duplicate handling, what happens with an invalid parent ID, or whether the call is idempotent on slug collision. Only the word "any" hints at breadth of applicability.

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 front-loaded sentence with zero filler. It is efficient, though the terseness borders on under-specification rather than model conciseness for a six-parameter mutation tool.

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?

Six parameters, no annotations, and no output schema: an agent cannot tell what the successful response contains (e.g., the new term ID) or what failure modes look like. For a creation tool in a family with hierarchy and slug semantics, the definition is too thin to be self-sufficient.

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 explains every one of the six parameters, including slug derivation and parent defaulting. The description adds no meaning beyond that, so the 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?

"Create a term in any taxonomy" gives a specific verb (create), a specific resource (term), and a scope qualifier (any taxonomy) that sets it apart from taxonomy-specific siblings such as wp_create_category or woo_create_attribute_term. It stops short of naming those siblings, so differentiation is implied rather than explicit.

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 when-to-use guidance at all: nothing says whether to prefer this over wp_create_tag/wp_create_category, nothing about prerequisites (site id, taxonomy existence), and nothing about what to do when the term already exists. The agent must infer all routing and preconditions from the schemas of neighbors.

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