Skip to main content
Glama

wp_create_category

Create a new WordPress category by specifying the site and category name, with optional slug, description, parent ID, and term meta fields for organizing posts.

Instructions

Create a new category

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

Input Schema

NameRequiredDescriptionDefault
metaNoRegistered term meta fields (show_in_rest) as key/value
nameYesCategory name
siteYesSite id (see list_sites)
slugNoURL slug
parentNoParent category ID (default 0 = top level)
descriptionNoDescription

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.14.0
    • addedInput schema / properties / meta
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Registered term meta fields (show_in_rest) as key/value",
      +  "type": "object"
      +}
    • removedInput schema / properties / parent / default
      Removed value: -0
    • changedInput schema / properties / parent / description
      Previous value: -"Parent category ID"New value: +"Parent category ID (default 0 = top level)"
    • changedInput schema / properties / parent / type
      Previous value: -"number"New value: +"integer"
  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: -[
      -  "name"
      -]New value: +[
      +  "site",
      +  "name"
      +]
  3. First observedv2.0.0

TDQS

C2.5/5.0
Behavior2/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, yet it only conveys that this is a write operation. It says nothing about required capabilities, duplicate-name handling, whether the slug is auto-generated from the name, or how the nested meta fields are validated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of waste, but its brevity reflects under-specification rather than disciplined conciseness. There is no structure to speak of because there is almost no content.

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?

For a six-parameter mutation tool with a nested meta object, no annotations, and no output schema, the description is far too thin. An agent gets no information about return values, error conditions, or how the required site id should be obtained beyond the schema's pointer to list_sites.

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% and all six properties (site, name, slug, parent, description, meta) are documented in the schema itself, so the baseline of 3 applies. The description contributes no additional meaning about parameter interaction, such as parent defaulting to top level.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create a new category" names a verb and a resource, so the basic operation is legible, but it adds essentially nothing beyond the tool name wp_create_category and gives no hint of what distinguishes it from siblings such as woo_create_category (product categories) or wp_create_tag.

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 guidance on when to use this tool versus alternatives, no mention of prerequisites such as the required site id, and no note about which taxonomy/context the category belongs to. The agent must infer everything from the name.

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