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

Start free trial

Run Rank Math Maintenance Tool

rank-math/run-maintenance-tool runs one Rank Math maintenance tool. It refuses without confirm: true.

The tools range from clearing a cache to deleting every redirection on the site.

Before you run it

Every tool here changes or removes data irreversibly, and they differ enormously in consequence — clearing a transient cache and deleting every redirection on the site are the same call with a different parameter. Some tools continue in the background after responding, so check the async flag rather than reading a success as “finished”. Discover what is runnable with rank-math/get-status and panel=tools.

At a glance

Abilityrank-math/run-maintenance-tool
ToolsetRank Math — toolset/rank-math
GroupRank Math › Status, Backups & Tools
RequiresRank Math SEO, active on the site
Capabilitymanage_options
SafetyDestructive — deletes stored values, and refuses to run without confirm: true
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Some tools finish within the request. Others — reindexing analytics, rebuilding tables on a large site — schedule work and continue in the background after responding.

For those, a successful response means the work started. Reading it as “done” is how a site gets a second tool run on top of a first one that is still going, which on table rebuilds is not a good idea.

So the response carries an async flag. When it is set, the work is ongoing and the result is not yet knowable from here.

The catalogue is install-specific. rank-math/get-status with panel=tools lists what is actually runnable, which is how you find out that the Yoast block converter is offered only when legacy Yoast blocks exist.

The destructive ones deserve naming: delete_log clears the entire 404 log, and the redirection tool deletes every redirection on the site — both unrecoverable, both one parameter away from a harmless cache clear.

Input

NameTypeRequiredWhat it is
toolstringYesWhich tool to run, from rank-math/get-status with panel=tools.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
toolstringThe tool that was run.
asyncbooleanWhether the work continues in the background.
resultobjectWhat the tool reported.
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:

Clear the Rank Math transients.

It resolves to one call:

{
  "ability": "rank-math/run-maintenance-tool",
  "parameters": {
    "tool": "clear_transients",
    "confirm": true
  }
}

Worth knowing

  • Check async. A success can mean “started”, not “finished”.
  • The tool list is install-specific — read it first.
  • The 404-log and redirection tools delete everything of their kind, unrecoverably.
  • Take a settings backup before running anything structural.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading