30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Update Rank Math SEO Meta

rank-math/update-seo-meta writes the Rank Math SEO metadata for one post: title, meta description, focus keyword, robots directives, canonical URL and the pillar and cornerstone flags.

The encoding is the reason this exists rather than a generic meta write.

At a glance

Abilityrank-math/update-seo-meta
ToolsetRank Math — toolset/rank-math
GroupRank Math › Content SEO
RequiresRank Math SEO, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

The encodings that catch people out

Rank Math stores robots directives as a list, not as separate boolean fields. Writing noindex as true in its own key produces meta that Rank Math does not read and a post that is still indexed.

The pillar and cornerstone flags are stored by presence rather than by value. A key set to false is still present, and Rank Math reads presence — so the flag is on when the writer believed they had turned it off.

Both of those are silent. The meta is written, the admin may even render it correctly, and the behaviour is wrong. Going through this ability means the encoding matches what Rank Math reads.

The canonical is the third field worth care. Setting one on a post that does not need it is the standard way to make a page invisible to search — a canonical pointing elsewhere tells Google this page is a duplicate.

Read the current values with Rank Math’s own rank-math/get-post-seo-meta. Rank Math ships abilities of its own, and this suite deliberately does not duplicate them. Where one already answers a question well, these pages point at it rather than offering a second version that behaves slightly differently.

Input

NameTypeRequiredWhat it is
post_idintegerYesThe post ID.
titlestringNoSEO title. Template variables are allowed.
descriptionstringNoMeta description.
focus_keywordstringNoThe focus keyword.
robotsarrayNoRobots directives as a list, for example ["noindex", "nofollow"].
canonicalstringNoCanonical URL.
pillarbooleanNoThe pillar/cornerstone flag.

What comes back

NameTypeWhat it is
post_idintegerThe post written.
updatedarrayWhich fields changed.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Set the SEO title and description on post 412.

It resolves to one call:

{
  "ability": "rank-math/update-seo-meta",
  "parameters": {
    "post_id": 412,
    "title": "%title% | %sitename%",
    "description": "A short, specific description of this page."
  }
}

Worth knowing

  • Robots directives are a list. Writing them as booleans does nothing.
  • The pillar flag is stored by presence, not by value.
  • A canonical pointing elsewhere removes the page from search. Set it deliberately.
  • Idempotent.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading