Skip to main content
Glama

wp_update_page

Update an existing WordPress page by changing only specified fields, including content, title, status, slug, and scheduling.

Instructions

Update an existing page (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_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPage 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
titleNoPage title
authorNoAuthor user ID
parentNoParent page ID (0 = top level)
statusNoPage status
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. Changed18 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"
      +}
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • 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"
      +}
    • 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 / 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: -[
      -  "id"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  3. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations, so the description must carry the behavioral burden. It does disclose the key trait that this is a partial patch (unmentioned fields are untouched), which is valuable. It says nothing about permissions, revisions, or behavior when the page ID is invalid — significant gaps for a mutation tool with zero annotation coverage.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler and the scope constraint placed immediately after the verb. It is efficient, though its extreme brevity leaves adjacent concerns unaddressed.

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 an 18-parameter mutation tool with a nested meta object, no annotations, and no output schema, one line is thin. The schema documents parameters well, but the description provides no safety, permission, or failure-mode context that structured fields cannot convey.

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 100% and each of the 18 parameters has its own description, including edge cases like "'' removes protection" and "0 = top level". The description adds no parameter meaning beyond the partial-update rule, so the baseline 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?

Specific verb+resource: "Update an existing page" — the agent knows exactly what it does, and the parenthetical clarifies partial-update semantics. No explicit mention of the create/delete/get siblings, which keeps it from a 5.

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?

The parenthetical "only the given fields change" implies when to use this over a full overwrite, but nothing states prerequisites (valid page ID, site context) or when to prefer wp_create_page / wp_update_post. Usage is implied rather than stated.

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