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. Returns {deleted: true}. Forwarded by AlphaBridge Connect to the one site this connection reaches.

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.5/5.0
Behavior5/5

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

Annotations already mark the tool as destructive and non-idempotent, and the description goes substantially further: it explains there is no trash, posts lose the term, orphaned posts get the default category, child terms move to the parent, term meta is removed, default terms are protected, permission is required, and the return value is {deleted: true}.

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?

The description is dense but front-loaded: the first clause states the action and irreversibility. Every subsequent clause adds concrete operational detail about side effects, constraints, permissions, or return value, with no filler.

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 tool with no output schema, the description covers the key missing context: permanence, side effects on posts and child terms, protected default terms, error conditions, required capability, and the exact return shape.

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 both parameters are already documented in the input schema. The description still adds useful semantic detail by stating that an unknown term_id returns an error and that the taxonomy's default term cannot be deleted, which clarifies parameter behavior beyond the schema.

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?

The description opens with a specific verb and resource: 'Delete a term from a taxonomy for good.' It makes the delete operation and its scope immediately clear, and the surrounding details distinguish it from update/create/list siblings without ambiguity.

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 description implies when this tool applies (permanent term deletion) and states important exclusions, such as the default term not being deletable. However, it does not explicitly compare against alternatives like wp_update_term or explain when not to use deletion versus updating.

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