Skip to main content
Glama

wp_update_post

Update an existing WordPress post by changing only the fields you specify, such as title, content, status, categories, tags, or featured media. Set a future date with publish status to schedule it.

Instructions

Update an existing post (only the given fields change)

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>",
      "id": "<id>"
    },
    "name": "wp_update_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPost ID
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)
titleNoPost title
authorNoAuthor user ID
formatNoPost format
statusNoPost status
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"
      +}
    • changedInput schema / properties / id / 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"
      +}
    • 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 / 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: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden, and it does add one important behavioral fact: only supplied fields are modified, so unspecified fields are preserved. It says nothing about required capability/permissions, what happens if the ID does not exist, whether the update is reversible, or that array fields like tags/categories replace rather than append (which the schema covers). Adequate but thin for a 20-parameter mutation.

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?

A single, front-loaded sentence with no redundant or filler wording. The parenthetical is the most decision-relevant detail and is placed immediately after the verb phrase.

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?

For a mutation tool with 20 parameters, nested meta, no annotations, and no output schema, the description is very sparse. It omits permission requirements, failure behavior for invalid IDs, return expectations for a mutation, and any guidance on the core-vs-meta/SEO field split across sibling tools.

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%, with per-parameter descriptions covering replacement semantics for tags/categories, write-only behavior for password, featured_media=0 removal, and scheduling via future date. The description adds no parameter meaning beyond this, so the baseline of 3 applies.

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 names a specific verb and resource ('Update an existing post') and clarifies the patch semantics with '(only the given fields change)', which distinguishes it from a full-replace operation and implicitly from wp_create_post. It does not explicitly differentiate itself from siblings like wp_update_page or acf_update_post_fields, but the post-vs-page and post-core-vs-field distinction is reasonably inferable.

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 explicit when-to-use or when-not-to-use guidance. The agent is not told to use wp_update_page for pages, wp_create_post for new posts, or acf_update_post_fields for meta, and there is no mention of prerequisites such as requiring a fetched post ID first. Only the parenthetical partial-update note implies anything about usage.

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