Skip to main content
Glama

Delete a term

wp_delete_term
Destructive

Delete a term from a taxonomy for good; terms have no trash. Posts lose the term (a post left without a category gets the default category), child terms move up to the deleted term's parent, and the term's meta is removed. The taxonomy's default term, such as the default category, is not deleted; it and an unknown term_id return an error. Needs the taxonomy's right to delete terms and the right to delete this term (delete_term), which a site can withhold for single terms. Returns {deleted: true}. Forwarded by AlphaBridge Connect to the one site this connection reaches.

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": {
      "term_id": "<term_id>",
      "taxonomy": "<taxonomy>"
    },
    "name": "wp_delete_term"
  }
}

Input Schema

NameRequiredDescriptionDefault
term_idYesId of the term to delete.
taxonomyYesTaxonomy the term belongs to, e.g. "category" or "post_tag".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / taxonomy / description
      Added value: +"Taxonomy the term belongs to, e.g. \"category\" or \"post_tag\"."
    • addedInput schema / properties / term_id / description
      Added value: +"Id of the term to delete."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the destructiveHint annotation by spelling out the exact consequences: no trash, posts lose the term and fall back to the default category, child terms are reparented to the deleted term's parent, and term meta is removed. It also discloses the two capability checks, including that a site can withhold delete_term for individual terms, and the return shape.

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?

Front-loaded with the action and its irreversibility, then consequences, then error/capability conditions. Dense but every clause carries information; the closing sentence about AlphaBridge Connect forwarding is the only part that reads as boilerplate context rather than tool guidance.

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?

For a destructive two-parameter mutation with no output schema, the description covers consequences, failure modes, permission requirements, and the explicit return value {deleted: true}. Nothing an agent needs in order to call it correctly or warn a user is missing.

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% and both parameters are already documented with examples ("category", "post_tag"), so the schema carries the semantic load. The description adds only indirect context, referencing term_id and taxonomy in the error conditions rather than explaining formats or edge cases.

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?

States a specific verb and resource ("Delete a term from a taxonomy") and immediately adds the distinguishing property that terms have no trash, separating it from trash-capable delete siblings. It is unambiguously distinct from wp_update_term, wp_create_term, and wp_list_terms.

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

Usage Guidelines4/5

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

Gives clear use conditions and exclusions: the taxonomy's default term is not deleted, and an unknown term_id returns an error, so the agent knows two cases where the call must not be made. It does not explicitly name wp_update_term as the alternative for modifying a term, which keeps it just below a 5.

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