Skip to main content
Glama

Create a draft

wp_create_draft

Creates a new WordPress page or post as a draft for review before publishing, accepting Gutenberg block markup or plain HTML and returning the edit link.

Instructions

Creates a new page or post. It is always saved as a draft, so a person reviews and publishes it in WordPress. content can be Gutenberg block markup or plain HTML. Returns the edit link.

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": {
      "title": "<title>"
    },
    "name": "wp_create_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
acfNoACF field values by field name. The field group must have "Show in REST API" enabled.
slugNo
titleYes
parentNoParent page ID
contentNo
excerptNo
post_typeNoPost type slug or REST base: "page", "post" or a custom post type. Default "page".page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false and idempotent=false, so the bar is lower. The description does add real value beyond them: the draft-only guarantee (no accidental publishing) and the returned edit link. It does not cover side effects such as duplicate titles creating separate drafts, or whether slug collisions are auto-resolved.

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?

Four short sentences, each load-bearing: what it makes, the draft guarantee, the content format, and the return value. The most decision-relevant fact — it never publishes — is placed early.

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?

With no output schema, the description correctly states the return ('the edit link'), and it clarifies the only ambiguous format parameter. For a 7-parameter tool with a nested ACF object, it leaves some parameter-level detail to the schema, which is a minor gap rather than a blocking one.

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 description coverage is only 43%, and title, slug, content and excerpt carry no schema descriptions. The description compensates for exactly one of these by explaining that content accepts Gutenberg block markup or plain HTML, leaving slug, excerpt and the ACF nested-object behavior unexplained in prose.

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?

States a specific verb and resource ('Creates a new page or post'), so an agent immediately knows the action and the two content shapes it can produce. It does not explicitly distinguish itself from the write-oriented siblings (wp_update_content, wp_update_seo), but the create-vs-update distinction is legible from the wording.

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 implied rather than stated: 'always saved as a draft, so a person reviews and publishes it' tells the agent why to reach for this tool instead of a publish path, and the content-format note is actionable. There is no explicit when-not guidance or named alternative for updating existing content.

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