Governed ability
Update post SEO (Rank Math)
aafm/rankmath-update-postGuarded write
Update post SEO (Rank Math) is a governed ability in Agent Abilities for MCP, a free WordPress plugin that runs an MCP server on your site.
Writes a post's Rank Math SEO fields to its rank_math_* post meta. URL fields are sanitized as URLs and robots is stored as Rank Math's serialized directive array. Social images (og_image, twitter_image) must be URLs of existing media-library attachments so Rank Math can render them; a URL with no matching attachment is refused. Setting a Twitter field turns off the Facebook fallback so the Twitter values render. Requires edit access to that post. The response returns each field's old value when it is plain text or a number.
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 post SEO (Rank Math) 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 post SEO (Rank Math) 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 post SEO (Rank Math) is one of the 5 governed Rank Math abilities. See the full Rank Math MCP integration.
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.
Set the Rank Math SEO title on post 142 and give it the focus keyword "onboarding checklist".
Update the Rank Math meta description and canonical URL for this post.
Mark post 512 as noindex through its Rank Math robots settings.
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 post SEO (Rank Math).
How does it write the fields?
Update post SEO in Rank Math writes a post's Rank Math SEO fields to its rank_math_* post meta. URL fields are sanitized as URLs and robots is stored as Rank Math's serialized directive array.
What are the safeguards?
Update post SEO in Rank Math requires edit access to that post, is a guarded write that is off by default and capability gated, and every write is recorded in the audit log.
Does it need Rank Math active?
Yes. Update post SEO in Rank Math only exists while Rank Math is active on the site.
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. It puts back the earlier SEO field values. This tool exists only while its SEO plugin is active. 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 post SEO (Rank Math) 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 post SEO (Rank Math) 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.