Skip to main content
Glama

mcp_delete_term

Permanently deletes a term from any WordPress taxonomy by site, taxonomy, and term ID; terms have no trash.

Instructions

Delete a term from any taxonomy (permanent; terms have no trash)

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

Input Schema

NameRequiredDescriptionDefault
idYesTerm ID
siteYesSite id (see list_sites)
taxonomyYesTaxonomy name (e.g. category, post_tag, product_cat)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.14.0
    • changedInput schema / properties / 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_-]+$"
  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",
      -  "id"
      -]New value: +[
      +  "site",
      +  "taxonomy",
      +  "id"
      +]
  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?

With no annotations, the description carries the full behavioral burden, and it does disclose the single most important trait: deletion is permanent and terms have no trash. It says nothing about required capabilities, what happens to posts still assigned to the term, or whether child terms are affected — significant gaps for an irreversible mutation.

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 compact sentence with the destructive caveat front-loaded in parentheses — tight and well structured. The parenthetical slightly interrupts the core statement but earns its place by flagging irreversibility.

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 3-parameter tool with full schema coverage and no output schema, the definition covers identity and the key irreversibility fact. It leaves out side effects on assigned content and on child terms, which an agent about to perform an irreversible delete would benefit from knowing.

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%, with each of site, taxonomy, and id already documented in the schema, so the baseline is 3. The description only reinforces that taxonomy accepts any taxonomy name; it adds no format, validity, or lookup guidance beyond the schema's own examples.

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?

"Delete a term" gives a specific verb and resource, and "from any taxonomy" scopes it beyond the taxonomy-specific siblings like wp_delete_category and wp_delete_tag. It stops short of explicitly naming those alternatives, but an agent can still tell what the tool operates on.

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 phrase "from any taxonomy" implies this is the general-purpose choice when the taxonomy varies, but the description never states when to prefer it over wp_delete_category, wp_delete_tag, or the SEO-specific seo_delete_term_seo. Usage is inferable rather than stated.

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