Skip to main content
Glama

wp_create_page

Create a new WordPress page with a title, content, status, and slug on a chosen site. Use it to add drafts or publish pages, set parent pages, templates, scheduling, and meta fields.

Instructions

Create a new WordPress page

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

Input Schema

NameRequiredDescriptionDefault
dateNoPublish date in the site timezone (ISO8601); a future date with status publish schedules it
metaNoRegistered meta fields (show_in_rest) as key/value
siteYesSite id (see list_sites)
slugNoURL slug
titleYesPage title
authorNoAuthor user ID
parentNoParent page ID (0 = top level)
statusNoPage status (default draft)draft
contentNoContent (HTML / block markup, stored raw)
excerptNoExcerpt
date_gmtNoPublish date in GMT (ISO8601)
passwordNoPassword to protect the content ('' removes protection); write-only, never returned
templateNoTheme template file, e.g. 'page-full-width.php' ('' = default)
menu_orderNoOrder among sibling pages
ping_statusNoWhether pingbacks/trackbacks are open
comment_statusNoWhether comments are open
featured_mediaNoFeatured image media ID (0 removes it)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv3.14.0
    • addedInput schema / properties / author
      Added value: +{
      +  "description": "Author user ID",
      +  "type": "integer"
      +}
    • addedInput schema / properties / comment_status
      Added value: +{
      +  "description": "Whether comments are open",
      +  "enum": [
      +    "open",
      +    "closed"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / content / description
      Previous value: -"Page content (HTML)"New value: +"Content (HTML / block markup, stored raw)"
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Publish date in the site timezone (ISO8601); a future date with status publish schedules it",
      +  "type": "string"
      +}
    • addedInput schema / properties / date_gmt
      Added value: +{
      +  "description": "Publish date in GMT (ISO8601)",
      +  "type": "string"
      +}
    • addedInput schema / properties / excerpt
      Added value: +{
      +  "description": "Excerpt",
      +  "type": "string"
      +}
    • addedInput schema / properties / featured_media
      Added value: +{
      +  "description": "Featured image media ID (0 removes it)",
      +  "type": "integer"
      +}
    • removedInput schema / properties / menu_order / default
      Removed value: -0
    • changedInput schema / properties / menu_order / description
      Previous value: -"Menu order"New value: +"Order among sibling pages"
    • changedInput schema / properties / menu_order / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / meta
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Registered meta fields (show_in_rest) as key/value",
      +  "type": "object"
      +}
    • removedInput schema / properties / parent / default
      Removed value: -0
    • changedInput schema / properties / parent / description
      Previous value: -"Parent page ID"New value: +"Parent page ID (0 = top level)"
    • changedInput schema / properties / parent / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / password
      Added value: +{
      +  "description": "Password to protect the content ('' removes protection); write-only, never returned",
      +  "type": "string"
      +}
    • addedInput schema / properties / ping_status
      Added value: +{
      +  "description": "Whether pingbacks/trackbacks are open",
      +  "enum": [
      +    "open",
      +    "closed"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "URL slug",
      +  "type": "string"
      +}
    • changedInput schema / properties / status / description
      Previous value: -"Page status"New value: +"Page status (default draft)"
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "publish",
      -  "future",
      -  "draft",
      -  "pending",
      -  "private",
      -  "trash"
      -]New value: +[
      +  "publish",
      +  "future",
      +  "draft",
      +  "pending",
      +  "private"
      +]
    • addedInput schema / properties / template
      Added value: +{
      +  "description": "Theme template file, e.g. 'page-full-width.php' ('' = default)",
      +  "type": "string"
      +}
  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: -[
      -  "title"
      -]New value: +[
      +  "site",
      +  "title"
      +]
  3. First observedv2.0.0

TDQS

C2.6/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden and discloses nothing: it does not mention that the default status is draft, that a future date plus publish schedules the post, that publish requires capability, or that password-protected content is write-only. For a mutation tool with 17 parameters this is effectively behaviorally silent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero waste, which is structurally sound but also the entirety of the definition. Conciseness is achieved by omission rather than by disciplined trimming of useful content.

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

Completeness2/5

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

Given a 17-parameter mutation tool with nested meta, no annotations, and no output schema, the description is far too thin: it omits auth/permission requirements, side effects of publishing or scheduling, and any note on what creation returns (e.g. the new page id). The rich schema partially compensates for parameter meaning but not for behavioral context.

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 100% and every one of the 17 parameters is documented in the schema, including defaults, enums, and the scheduling interaction between date and status. The description adds no parameter meaning of its own, which is the baseline-3 case when the schema does all the work.

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: 'Create a new WordPress page'. The word 'page' distinguishes it from wp_create_post, wp_create_category and the other create siblings without needing to name them. It does not spell out scope (site-specific, draft by default), but the core action is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: no mention of when to create a page versus a post or CPT post, no prerequisites (auth, site id), and no reference to wp_update_page for existing pages. The agent must infer everything from the tool name.

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