MCP for RL AMM (Regular Labs Advanced Module Manager)
MCP for RL AMM is a free add-on for MCP for J. It gives an AI app connected to your Joomla site 22 tools for Advanced Module Manager by Regular Labs, Free or Pro: see what really decides where each module shows, manage Condition Sets and their rules, put many modules on one set in a single call, find modules with identical rules, and convert Joomla's own module assignments to sets. RL AMM stands for Regular Labs' Advanced Module Manager; until version 1.0.2 this add-on was called MCP for Advanced Module Manager.
New to MCP for RL AMM? This page is the reference manual. For an overview and the download, see its page on cybersalt.com.
Release history. This page documents version 1.0.1. For what changed in each version, see the changelog.
Requirements. Joomla 5 or 6, PHP 8.2 or newer, MCP for J, and Advanced Module Manager 12.1.0 or newer, Free or Pro. On an older version the tools still read, but every change is refused until you update. Tested with Advanced Module Manager Free 12.1.0 and Pro 12.1.0. Released under the GNU GPL v2 or later.
What's in the package
One plugin, System - MCP for RL AMM (element csmcpforjadvancedmodulesfree). It adds its tools to MCP for J and has no admin screen of its own. The tools appear in your AI app the next time it asks MCP for J for its tool list. If Advanced Module Manager isn't installed, each tool says so instead of failing.
The Pro edition's extra features (the Pro rule types, extra fields and HTML around modules) are in a separate add-on, MCP for RL AMM Pro. This free one works with both editions.
Installing
Install MCP for J first and connect your AI app to it. Then pick one of these:
- From inside Joomla (recommended). Open Components → MCP for J → Browse MCP Add-ons and install the Advanced Module Manager add-on. Updates then arrive through System → Update → Extensions.
- From the zip. Download it from the product page and install it in System → Install → Extensions.
First steps
Ask your AI app "Check Advanced Module Manager on this site. Is anything showing that shouldn't be?". That's read-only. It tells you which edition and versions you run, whether the plugin is on, and what the health check finds.
⤢ Click to enlarge
What decides where a module shows
Turning on Advanced Module Manager's system plugin changes what a module's settings mean. Joomla's own access level, menu assignment, language and publishing dates stop deciding where a module shows, and the module's Condition Set decides instead. A module with no set shows on every page, to every visitor, even one assigned to no pages at all. So a change made with Joomla's normal module settings can be saved and still change nothing on the page.
These tools always work with what decides. Ask why a module shows where it does, and the answer says whether its Condition Set, nothing, or (with the plugin off) Joomla's own settings decide, and which Joomla settings are being ignored.
⤢ Click to enlarge
⤢ Click to enlarge
Before you turn the plugin on
The health check flags modules that rely on Joomla's own settings while the plugin is on, so they show everywhere. The conversion preview reads each module's menu assignment, access level, language and publishing dates and proposes the Condition Sets that keep it showing the same way. Modules with the same settings share one set, and a set you already have is reused if its rules match. Nothing changes until you confirm, and Joomla's own settings are left as they are.
⤢ Click to enlarge
⤢ Click to enlarge
With confirm: true the sets are created and attached in one go: all of them, or, if anything fails part way, none. A module assigned to no pages can't be expressed as a set, so it's listed for you to unpublish or give some pages. The preview works with the plugin off, so you can run it first, and with the plugin on, to repair a site where it already is.
⤢ Click to enlarge
Permissions
The AI can never do more than the Joomla account it acts for could do in Advanced Module Manager itself. Each tool needs MCP for J's Use permission (reading) or Write permission (changes), and on top of that the permissions of Advanced Module Manager and of its Conditions component, set in each one's Options on the Permissions tab:
| Tools | The account also needs |
|---|---|
| Reading: modules, visibility, sets, rule types, health, the conversion preview | Access Administration Interface on Advanced Module Manager and Conditions |
| Creating a set or duplicating one | As above, and Create on Conditions (plus Edit State to create it published) |
| Changing a set or its rules | As above, and Edit on Conditions |
| Publishing, unpublishing or trashing a set | As above, and Edit State on Conditions |
| Deleting a set | As above, and Delete on Conditions |
| Attaching, detaching or copying sets | Edit on Conditions, and Edit on each module (Joomla's own module permission) |
| A module's category, colour, "hide if empty" and notes | Edit on each module |
| Converting Joomla's assignments | Create, Edit and Edit State on Conditions, and Edit on each module |
Advanced Module Manager installs with no permissions of its own, so Joomla's Global Configuration decides. On those defaults Super Users and Administrators can use every tool, and Managers can use none, because they don't have Access Administration Interface on these components; the same is true in Advanced Module Manager's own screens. The refusal names the permission and where to grant it.
⤢ Click to enlarge
The tools
22 tools in 6 groups. Your AI app picks the right one from what you ask.
| Group | What they do |
|---|---|
| Diagnostics (2) | get_advancedmodules_component_info: edition, versions and whether the plugin is on. check_advancedmodules_health: the problems that fail silently, such as modules whose Joomla settings are being ignored, modules on unpublished or empty sets, rules the Free edition skips, rules pointing at deleted items, loops of nested sets and unused sets. |
| Modules (3) | list_advancedmodules_modules and get_advancedmodules_module_visibility: modules with what decides them, in plain English. set_advancedmodules_module_options: Advanced Module Manager's category, colour, "hide if empty" and notes. |
| Condition Sets (7) | List, read, create, update, duplicate, publish, unpublish, trash and delete sets. |
| Rules (4) | list_advancedmodules_rule_types lists the rule types and what each takes; add, change and remove rules one at a time. |
| Grouping (4) | Find modules with identical rules, put many modules on one set in one call, take them off, and make modules show wherever another one does. |
| Conversion (2) | Preview and create the sets that keep modules showing as Joomla's own settings say. |
Condition Sets, shared
One set of rules can serve any number of modules, so a group of modules with the same assignments can be kept in one place and changed once. Create the set, then attach every module to it in one call. Attaching reports what each module had before.
⤢ Click to enlarge
⤢ Click to enlarge
⤢ Click to enlarge
A change to a set changes every module on it, and other Regular Labs extensions can use the same sets, so every change says what it reaches. A set that isn't published counts as no set at all, so unpublishing, trashing or deleting one puts all its modules on every page. Those need confirm: true; without it you get the list of what would be affected.
⤢ Click to enlarge
Safety rails
- PHP rules are never written. They run code on your server, so these tools never write one, and never attach, publish, copy or include a set that runs one, or change a set one of those depends on. Reads report that the rule exists, never the code. Manage PHP rules in the Joomla administrator.
- Someone else's open edit wins. A set or module another user has open in the Joomla administrator isn't changed, because their Save would overwrite it. Ask them to close it, or check it in under System → Global Check-in.
- All or nothing. Converting, and putting several modules on a set, either finish completely or change nothing.
- Limits that look after your pages. A set holds up to 100 rules and 50 regular expressions, counting the sets it includes, nesting is capped, and a regular expression that would take too long to check is refused. URL regular expressions have to compile. Names and labels stay plain text. Rule ids change every time a set is saved, so a stale one is refused rather than guessed at.
⤢ Click to enlarge
⤢ Click to enlarge
Free, Pro, and which add-on you need
| Advanced Module Manager feature | Edition | Covered by |
|---|---|---|
| Condition Sets, attachments, categories, colours, hide if empty, notes | Free and Pro | This free add-on |
| Rules: menu items, home page, date, Joomla content, access levels, user groups, languages, devices, browsers, tags, components, templates, URLs, other sets | Free and Pro | This free add-on |
| Rules: time, days, months, seasons, users, IP addresses, geolocation, article custom fields, HikaShop, ZOO and FLEXIcontent | Pro only | MCP for RL AMM Pro |
| Extra fields, HTML around a module, HTML for an empty module | Pro only | The Pro add-on |
The Free edition skips Pro rule types rather than failing, so a set holding only those shows its modules everywhere, which can happen after a downgrade. The read tools mark those rules and the health check flags them.
What's been tested
Version 1.0.1 was tested on Joomla 5.4 and 6.1 with PHP 8.4, each with Advanced Module Manager Free 12.1.0 and then Pro 12.1.0, and MCP for J 2.13.0. Results were checked on real front-end pages, as a guest and logged in, with the plugin on and off. Every tool was run with Super User, Administrator and Manager accounts, and with each Conditions permission granted and taken away in turn. Partial failures were forced in the database to prove that converting and attaching roll back. Geolocation, HikaShop, ZOO and FLEXIcontent rules belong to the Pro add-on and weren't part of this test.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| No Advanced Module Manager tools in the AI app | Check that MCP for J is installed, System - MCP for RL AMM is enabled in System → Plugins, and the AI app has refreshed its tool list. |
| A change was saved but the page didn't change | The System - Advanced Module Manager plugin is off, so Joomla's own settings still decide. Every change says so in its response. |
| "needs 12.1.0 or newer" | Update Advanced Module Manager from Regular Labs. Reads work meanwhile. |
| "open in the Joomla administrator by another user" | Someone has the set or module open. Ask them to close it, or check it in under System → Global Check-in. |
| A tool says the account lacks a permission | See Permissions. |
| "Rule ids change every time a set is saved" | Read the set again with get_advancedmodules_condition_set and use the new id. |
Getting help
Questions and bug reports are welcome through the Cybersalt support form. Please include your Joomla, PHP, Advanced Module Manager (Free or Pro), MCP for J and add-on versions, and the tool response that surprised you.
MCP for RL AMM is developed by Cybersalt Consulting Ltd. and released under the GNU General Public License v2 or later. It is not made or endorsed by Regular Labs.
A module with no set: it shows everywhere — click anywhere to closeClose ×
A module on a set, and the modules that share it — click anywhere to closeClose ×
The health check before conversion — click anywhere to closeClose ×
The conversion preview — click anywhere to closeClose ×
The conversion, confirmed — click anywhere to closeClose ×
A Manager on Joomla's default permissions — click anywhere to closeClose ×
Creating a set — click anywhere to closeClose ×
Three modules onto one set (a dry run first) — click anywhere to closeClose ×
Modules that could share a set — click anywhere to closeClose ×
Unpublishing a set in use needs confirm — click anywhere to closeClose ×
A PHP rule, refused — click anywhere to closeClose ×
A set someone else has open — click anywhere to closeClose ×