MP.AIGOV.1020 Custom agent or tool that nobody uses should be blocked or removed
[!NOTE] Validated 2026-11-09 against a real Microsoft 365 test tenant, via an actual
Invoke-Maesterrun. The run correctly Failed (true positive): one custom agent ("Vani") was never used and hadn't been modified in over 180 days. The package-detailactiveUsersandlastUsedDateTimeproperties read and typed as expected.
Finds custom or external agents and tools in the Copilot catalog that nobody uses: not blocked, no active
users in the last 30 days, last used more than StaleDays ago (or never), and not changed in StaleDays.
StaleDays defaults to 180, matching Maester's own dormancy tests; 90 is a stricter option.
Microsoft-published packages and App-kind packages (Office add-ins, tabs) aren't checked.
Unused agents and tools keep their permissions and data access. Blocking or removing them shrinks what a compromise or a mistake can reach.
Remediation action
Confirm with the owner that the agent or tool isn't needed, then block it in the Microsoft 365 admin center (Agents > All agents) or remove it.
Related links
%TestResult%