Skip to main content
Glama

Update a page or post

wp_update_content
DestructiveIdempotent

Change a WordPress page or post’s title, content, excerpt, or ACF fields; read existing blocks first and send full content to avoid fragment overwrites.

Instructions

Changes the title, content, excerpt or ACF fields of a page or post. Read it first with wp_get_content (format "blocks") and send the full new content, not a fragment. WordPress keeps a revision, so changes can be undone. Published content can only be changed if the server allows it.

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

Input Schema

NameRequiredDescriptionDefault
idYesPost ID
acfNo
titleNo
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

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description earns credit for adding substance beyond that: revisions mean changes are undoable, published content may be refused by the server, and content updates are whole-value replacements rather than fragments. It does not clarify whether omitting title/excerpt/acf leaves prior values intact or clears them, which is the main remaining behavioral gap for a destructive 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?

Four short sentences, each doing distinct work: scope, prerequisite read, replacement semantics plus revision safety, and a permission caveat. The riskiest constraints are front-loaded with zero filler.

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?

For a destructive, nested-object mutation with no output schema, the definition covers the important operational facts an agent needs to avoid data loss and failed calls. It omits what the call returns (updated record vs. revision identifier) and the acf value format, both of which would help close the loop.

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 coverage is only 33% (id and post_type documented), so the description must carry weight. It clarifies the two riskiest parameters — content is a full replacement, and acf carries Advanced Custom Fields values — but leaves title, excerpt, and especially the expected acf object shape unelaborated beyond naming them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource plus the exact mutable surface: "Changes the title, content, excerpt or ACF fields of a page or post." That field list separates it cleanly from sibling mutators like wp_update_alt_text and wp_update_seo, and it names wp_get_content as the read counterpart.

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

Usage Guidelines4/5

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

Gives a concrete prerequisite workflow — read first with wp_get_content using format "blocks" — and an explicit usage rule: send the full new content, not a fragment. It also flags that published content may be blocked server-side. It stops short of explicitly excluding the SEO/alt-text siblings, but the field scope already implies that boundary.

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