Governed ability
Update content item
aafm/update-cpt-itemGuarded write
Update content item is a governed ability in Agent Abilities for MCP, a free WordPress plugin that runs an MCP server on your site.
Update an item by ID: an allowlisted custom content type, or a post, page, product, event, venue, organizer or listing while that type's own update tool is on (publishing requires that type's publish capability). Put any block styling in the block delimiter attributes, not inline style, or the editor marks the content invalid. When the item is owned by a foreign page builder (Elementor, Divi, Beaver Builder, Avada, Visual Composer, Oxygen, Breakdance, Brizy, Bricks, and WPBakery), an edit that sends only post_id and excerpt is accepted and the item's stored content is left as it was; any other change is refused, and so is every edit when the plugin cannot tell which builder owns it, since a write here would either have no visible effect or corrupt the builder's stored markup.
How it is governed
The same model as every ability in the plugin, stated for this one.
- Off until you enable it
Like every ability, Update content item ships switched off. You turn it on one at a time, and an update never switches on a tool it serves.
- Guarded write
Writes stay conservative, and the plugin re-checks the capability before the call runs.
- Capability gated
A connection only sees Update content item if the user you connected can run it, and the plugin checks that capability again before it executes.
- Every call audited
The call is written to the log in your own database, denials included, with the argument keys and the identifiers it touched, never free-text content.
Update content item is one of the 30 governed Content abilities. Browse the other Content abilities in the catalog.
See it in action
An illustrative run. Your real calls and data stay on your own site.
Try it with a prompt
Example requests you could paste to your agent.
Update portfolio item 220 with this new description.
Change the summary on event item 55.
Edit testimonial 12 to fix the author name.
These are illustrative example prompts. The agent runs them as the user you connected, checked against that user's capabilities and written to your audit log.
Frequently asked
Short answers for Update content item.
Can it publish the item?
Publishing through Update content item requires that type's publish capability, otherwise the ability edits the item without taking it live.
How is access limited?
Update content item is limited to allowlisted types and to items the agent can edit, is off by default, and logs every change.
Can I undo it?
Yes, while change history is on. The Changes tab reverts it if the item has not been edited since, and keeps changes for up to 30 days. WordPress also saves revisions for post types that support them, but a first edit to an item with no earlier revisions leaves only the new text. An agent can also revert it with Undo change from its own connection within 24 hours, once you switch Undo change on and while this tool stays on for that connection.
Update content item is one of the 25 tools the Changes tab records. Undo what an AI agent changed lists them all, and what cannot be undone.
Governed by default, from the first call.
Update content item is off until you enable it, scoped to the user you connect, and logged like everything else. Turn on only what you need.
Every ability off until you enable it, capability-gated on every call.