Skip to main content
Glama

wp_create_post

Creates a new WordPress post with validation, supporting drafts, scheduling, categories, tags, and featured images. Returns success feedback with management links for easy editing.

Instructions

Creates a new WordPress post with comprehensive validation and detailed success feedback including management links.

Usage Examples: • Simple post: wp_create_post --title="My New Post" --content="<p>Hello World!</p>" • Draft post: wp_create_post --title="Draft Post" --status="draft" • Categorized post: wp_create_post --title="Tech News" --categories=[1,5] --tags=[10,20] • Post with featured image: wp_create_post --title="My Post" --content="<p>Content</p>" --featured_media=42 • Remove featured image: wp_create_post --title="My Post" --featured_media=0 • Scheduled post: wp_create_post --title="Future Post" --status="future" --date="2024-12-25T10:00:00" • Complete post: wp_create_post --title="Complete Post" --content="<p>Content</p>" --excerpt="Summary" --status="publish"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteNoThe ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.9.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose two useful traits beyond the schema: input validation occurs and the success response includes management links. But it says nothing about required capabilities/authentication, error behavior, or what happens to defaults such as status when omitted, so a mutation tool remains only partially covered.

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?

The summary sentence is front-loaded and the examples are scannable, each illustrating a distinct capability rather than repeating itself. Seven examples is on the verbose side, but none is pure filler.

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?

There is no output schema, and while the description notes that success feedback with management links is returned, it never details the response shape or failure modes. Combined with no annotations on a write tool, the definition covers invocation but leaves the agent guessing about permissions, validation failures, and sibling selection.

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 reported as 100%, but the schema contains only the 'site' parameter, while the description documents title, content, excerpt, status, categories, tags, featured_media, and date through examples. It adds real meaning the schema lacks, including the ISO-8601 date format for scheduled posts and the featured_media=0 convention for removal, though array encoding (categories=[1,5]) is shown without explanation.

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?

The first sentence names a specific verb and resource ('Creates a new WordPress post') and adds behavioral promises ('comprehensive validation and detailed success feedback including management links'). It is clear, but it never explicitly distinguishes this tool from close siblings such as wp_create_page or wp_update_post, so the agent must infer the boundary from the name alone.

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 seven worked examples demonstrate concrete usage scenarios (simple, draft, scheduled, categorized, featured media, complete), which implicitly tells the agent when particular options apply. However, there is no guidance on when to choose this tool over wp_create_page or wp_update_post, no prerequisites, and no exclusions.

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