Indexer
The Indexer tool lists Magento indexers with their status, mode, last update time, and backlog, and can invalidate indexers to schedule an asynchronous rebuild.
Access control
Visibility of this tool is controlled by the MCP Tools -> Built in -> System -> Indexer ACL resource. Enable or disable it in System -> Permissions -> User Roles -> [Role] -> Role Resources.
The invalidate action is gated by both of the following:
- The store-configuration Allow Index Invalidation switch (disabled by default), see Tools Settings.
- The role's core System -> Index Management -> Invalidate index permission.
The status action is always available.
When to use
The AI assistant uses this tool to answer questions like "which indexers are out of date?" or to act on requests such as "invalidate the product price index".
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
action | Action to perform: status or invalidate. | string | Yes |
indexer_id | status only. Limit the report to a single indexer. | string | No |
indexer_ids | invalidate only. Non-empty array of indexer ids to invalidate. | array | Yes (for invalidate) |
Asynchronous by design
The invalidate action does not rebuild indexes directly. It marks the requested indexes as invalid; Magento cron then rebuilds them on its next run. To track progress, call action=status again and watch the mode and backlog.
If invalidated indexes never rebuild, cron may not be running. Use the Cron Checker tool to confirm cron health.
Settings
The Allow Index Invalidation switch is located at Stores -> Configuration -> Mirasvit Extensions -> MCP Tools -> Tools -> Indexer. See Tools Settings for details.