Skip to main content
Glama

update_post

Modify an existing WordPress post by ID, including title, content, status, excerpt, categories, tags, and featured image.

Instructions

Update an existing 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": {
      "id": "<id>"
    },
    "name": "update_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPost ID
tagsNoArray of tag IDs
titleNoPost title
statusNoPost status
contentNoPost content/body HTML
excerptNoPost excerpt
categoriesNoArray of category IDs
featured_mediaNoFeatured image attachment ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and provides almost none of it. It does not state that this is a mutation, that only 'id' is required so unspecified fields are presumably left untouched, whether the change is reversible, what permissions are needed, or what the call returns. Only the generic word 'Update' signals a write operation.

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?

It is a single short sentence with the operation front-loaded and zero filler. The tradeoff is that the brevity comes from omission rather than efficiency, but within this dimension the text itself is tight and readable.

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 eight-parameter mutation tool with no annotations and no output schema, the definition is too thin: the partial-update semantics implied by a single required 'id', the required permissions, and the overlap with publish_post are all left unexplained. The rich schema compensates for field-level meaning but not for the behavioral and routing gaps.

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 eight parameters including the id, the enum-constrained status, and the tag/category ID arrays are already documented in the schema. The description adds no syntax, format, or interaction detail (e.g. whether tags replace or append), so the baseline of 3 applies.

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

Purpose3/5

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

The description gives a clear verb+resource pair ('Update an existing WordPress post'), so an agent knows the general operation. However, it adds nothing about which aspects are updatable (title, content, status, taxonomy) and does not distinguish this from siblings like update_page, update_comment, or publish_post, leaving the agent to infer from the name alone.

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 statement of prerequisites, no condition selecting this over publish_post (which overlaps when status is set to 'publish'), and no note about when to prefer create_post. The agent must guess at the boundary between updating a post and publishing one.

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