Skip to main content
Glama

Delete a post / page

wp_delete_content

Delete a WordPress item by ID: move to trash for recovery or permanently erase with force. Works for posts, pages, and custom types.

Instructions

Move an item to trash (recoverable). Pass force: true to delete permanently — that cannot be undone, so confirm with the user first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
siteNoConfigured site name. Omit to use the default site.
forceNotrue = permanent, irreversible delete. Default trashes instead.
post_typeNoPost type slug, e.g. post, page, or a custom type.post
Behavior4/5

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

With no annotations, the description carries full responsibility and explains that default is recoverable trash, while force:true is permanent and irreversible. It adds the crucial safety note about confirming with the user, which is essential for a destructive tool.

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 two sentences, front-loaded with the primary action, and every clause provides meaningful information. No filler or redundancy.

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?

The tool is a straightforward destructive operation, and the description covers the key behavioral distinction (trash vs permanent) and user confirmation. Parameter guidance is left largely to schema, and the absence of output schema is acceptable because the main concern is the side effect.

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?

The schema already covers 75% of parameters with descriptions. The description adds 'recoverable' and the confirmation nuance for force, but largely repeats the schema's 'irreversible delete'. It does not add meaning for the required id parameter, so the extra contribution is limited.

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 clearly states the action ('Move an item to trash', 'delete permanently') and the resource (a post/page). It distinguishes the tool from siblings like wp_create_content, wp_update_content, and wp_get_content by focusing on deletion semantics.

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?

It provides explicit guidance on when to use force:true versus the default trash behavior, including the caution to confirm with the user. It does not name alternative tools for non-destructive actions, but the intended use case is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amolb1986/wp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server