Skip to main content
Glama

wp_delete_post

Delete a WordPress post by site and post ID, moving it to trash or permanently removing it when force is set to true.

Instructions

Delete a post (moves to trash, or permanently if force=true)

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

Input Schema

NameRequiredDescriptionDefault
idYesPost ID
siteYesSite id (see list_sites)
forceNoBypass trash and delete permanently

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.14.0
    • changedInput schema / properties / id / 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: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

A3.6/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 most important trait: the default is a reversible move to trash and only force=true is permanent. It omits permissions/auth requirements, what happens on an already-trashed or nonexistent ID, and whether the response confirms trashing versus permanent deletion.

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?

A single sentence, front-loaded with the verb and resource, with the conditional behavior packed into a parenthetical. Nothing is redundant and nothing needs to be moved earlier.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple 3-parameter delete tool with no output schema, the description covers the essential mutation semantics but leaves the safety profile thin — no capability requirements, no post-type scoping, no confirmation of what is returned. Annotations are absent, so more disclosure would have been warranted.

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% and every parameter already has a description, so the baseline would be 3. The description nonetheless reinforces the key interaction between 'id'/'site' and 'force' by framing force as the switch between trash and permanent deletion, which is the semantically critical distinction for correct invocation.

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?

Description gives a specific verb ('Delete') and resource ('post'), plus a parenthetical clarifying the deletion mode. It is distinguishable from siblings like wp_delete_page or wp_delete_category by the resource noun, though it never explicitly contrasts with wp_delete_cpt_post, which could ambiguously overlap.

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?

Usage is only implied by the verb — an agent can infer you call this to remove a post. There is no statement of prerequisites (required capabilities, whether the post must exist), no guidance on choosing between this and wp_delete_cpt_post or wp_delete_page, and no warning about irreversibility beyond the parenthetical.

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