Skip to main content
Glama

Create a term

wp_create_term

Create a new term (category, tag or custom taxonomy term) in a taxonomy. Returns {created: true, term_id}. Needs the taxonomy's right to manage terms (for categories and tags: manage_categories). WordPress refuses a parent that does not exist and, without a distinct slug, a name the taxonomy already has (in a hierarchical taxonomy: under the same parent). Existing terms are changed with wp_update_term. Forwarded by AlphaBridge Connect to the one site this connection reaches.

Input Schema

NameRequiredDescriptionDefault
nameYesDisplay name of the new term.
slugNoURL slug. Default: derived from the name. WordPress adds a suffix when the slug is taken.
parentNoId of the parent term in the same taxonomy, for hierarchical taxonomies such as categories. Default 0: top level.
taxonomyYesTaxonomy name, e.g. "category" or "post_tag", as wp_get_taxonomies lists it. An unknown taxonomy is refused.
descriptionNoTerm description. Default empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / description / description
      Added value: +"Term description. Default empty."
    • addedInput schema / properties / name / description
      Added value: +"Display name of the new term."
    • addedInput schema / properties / parent / default
      Added value: +0
    • addedInput schema / properties / parent / description
      Added value: +"Id of the parent term in the same taxonomy, for hierarchical taxonomies such as categories. Default 0: top level."
    • addedInput schema / properties / slug / description
      Added value: +"URL slug. Default: derived from the name. WordPress adds a suffix when the slug is taken."
    • addedInput schema / properties / taxonomy / description
      Added value: +"Taxonomy name, e.g. \"category\" or \"post_tag\", as wp_get_taxonomies lists it. An unknown taxonomy is refused."
  2. Added

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses the required capability (manage_categories for categories/tags), two concrete failure modes (nonexistent parent refused, duplicate name refused unless a distinct slug is given, scoped to same parent in hierarchical taxonomies), and the return payload. Slightly short of 5 only because it does not say whether a failed create is atomic/no-op or whether it is safe to retry given idempotentHint=false.

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?

Front-loaded with what is created and what is returned, then permissions, then failure modes, then the sibling pointer. Every sentence carries decision-relevant information; nothing is restated from the name or title.

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?

With no output schema present, the description supplies the return shape ({created: true, term_id}), the permission requirement, the refusal conditions, and the single-site forwarding scope. That is everything an agent needs to invoke a 5-parameter create 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?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics on top: the 'parent' parameter must reference an existing term and only matters for hierarchical taxonomies, and name uniqueness is evaluated per-parent. That is behavior the schema's per-parameter text does not spell out.

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?

Specific verb + resource: 'Create a new term (category, tag or custom taxonomy term) in a taxonomy.' Explicitly distinguishes itself from wp_update_term ('Existing terms are changed with wp_update_term') and implicitly from wp_delete_term/wp_list_terms, so an agent can route correctly without opening a schema.

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

Usage Guidelines5/5

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

Names the alternative tool (wp_update_term) and the condition that selects it, i.e. existing terms. Also states the connection scope ('the one site this connection reaches'), which tells the agent when this tool is applicable versus a network-level tool.

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