rank-math/list-modules lists every Rank Math module with its slug, label, whether it is active, whether it is unavailable on this install, and whether changing its state refreshes rewrite rules.
It is how you resolve a rank_math_module_inactive error from another ability.
At a glance
| Ability | rank-math/list-modules |
| Toolset | Rank Math — toolset/rank-math |
| Group | Rank Math › Modules & Permissions |
| Requires | Rank Math SEO, active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
Rank Math is modular, and a large share of its abilities depend on a module being on. An ability that fails with a module error is not broken — it is asking for something the site has switched off.
The unavailable flag is the more interesting one. A module can be unavailable rather than merely inactive: PRO-only features on a free install, or modules with an unmet dependency such as WooCommerce not being present. Those cannot be switched on, and knowing that is different from knowing they are off.
The rewrite-rules flag marks the modules whose routes depend on rewrite rules being flushed — the sitemap and llms.txt among them. Those are the modules where switching the state has a side effect beyond the module itself, and where a state change is the standard repair for a 404.
Disabling a module does not delete its data.
Input
This ability takes no input.
What comes back
| Name | Type | What it is |
|---|---|---|
modules | array | One entry per module: slug, label, active, unavailable, and whether it affects rewrite rules. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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:
Which Rank Math modules are switched on?
It resolves to one call:
{
"ability": "rank-math/list-modules",
"parameters": {}
}Worth knowing
- Unavailable is not the same as inactive. Unavailable cannot be switched on.
- The rewrite-rules flag marks modules whose routes break when rules are stale.
- Disabling a module keeps its data.
- The answer to a
rank_math_module_inactiveerror.
Related abilities
- Set Rank Math Module State — switch one
- Get Rank Math Sitemap Status — a module whose route can break
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category