Skip to main content
Glama

wp_create_post

Create a new WordPress post with title, content, status, categories, tags, and scheduling; set it as draft, publish, or future-dated.

Instructions

Create a new WordPress post

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_post"
  }
}

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
tagsNoTag IDs (replaces the current set)
titleYesPost title
authorNoAuthor user ID
formatNoPost format
statusNoPost status (default draft)draft
stickyNoStick the post to the front page
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)
categoriesNoCategory IDs (replaces the current set)
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. Changed21 schema fields changedv3.14.0
    • addedInput schema / properties / author
      Added value: +{
      +  "description": "Author user ID",
      +  "type": "integer"
      +}
    • changedInput schema / properties / categories / description
      Previous value: -"Category IDs"New value: +"Category IDs (replaces the current set)"
    • changedInput schema / properties / categories / items / type
      Previous value: -"number"New value: +"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: -"Post 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"
      +}
    • changedInput schema / properties / excerpt / description
      Previous value: -"Post excerpt"New value: +"Excerpt"
    • changedInput schema / properties / featured_media / description
      Previous value: -"Featured image ID"New value: +"Featured image media ID (0 removes it)"
    • changedInput schema / properties / featured_media / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Post format",
      +  "enum": [
      +    "standard",
      +    "aside",
      +    "chat",
      +    "gallery",
      +    "link",
      +    "image",
      +    "quote",
      +    "status",
      +    "video",
      +    "audio"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / meta
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Registered meta fields (show_in_rest) as key/value",
      +  "type": "object"
      +}
    • 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: -"Post status"New value: +"Post 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 / sticky
      Added value: +{
      +  "description": "Stick the post to the front page",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / tags / description
      Previous value: -"Tag IDs"New value: +"Tag IDs (replaces the current set)"
    • changedInput schema / properties / tags / items / type
      Previous value: -"number"New value: +"integer"
    • 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.8/5.0
Behavior2/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, yet it only implies a write. It does not mention that creation is irreversible without a subsequent delete, what permissions or auth are required, whether the post is created as a draft by default, or whether terms like tags/categories replace existing sets (that detail lives only in the schema).

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?

One short front-loaded sentence with zero filler, so nothing is wasted. However, it is under-specified rather than genuinely concise for a 19-parameter mutation tool, leaving the structure too thin to guide invocation.

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 19 parameters, nested meta, four enums, no annotations, and no output schema, the definition is far too sparse. An agent is left without information on auth, side effects, or what happens to unspecified fields, all of which the schema alone does not answer.

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%, so all 19 parameters, including the enums for status/format/comment_status/ping_status and the nested meta object, are already documented in structured form. The description adds no parameter meaning of its own, which is the baseline 3 case when the schema does the heavy lifting.

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 description gives a specific verb and resource ("Create a new WordPress post"), which is unambiguous on its own. It does no sibling differentiation, though, so an agent cannot tell from the text why it should pick this over wp_create_page or mcp_create_cpt_post.

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, no prerequisites, and no mention of an alternative for pages or custom post types in the sibling list. The agent gets the bare action and must infer everything about fit from the tool name alone.

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