audit_unused_media
Audit the media library for potentially unused attachments. Returns media items that are older than a specified number of days and optionally smaller than a size threshold. This is a heuristic audit — actual usage in posts/pages is not checked.
This record as markdown: /tools/vamerli-elementify-mcp/audit-unused-media.md
What audit_unused_media does on Elementify MCP
AI agents call audit_unused_media to retrieve information from Elementify MCP without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
Why audit_unused_media is rated Low
The tool retrieves and reports on media library data based on age and size heuristics. It does not modify, delete, execute commands, or commit financial actions. The heuristic nature and lack of actual usage verification confirm it is a read-only audit function.
From the tool's definition Tool performs an audit query to 'Returns media items that are older than a specified number of days and optionally smaller than a size threshold' with explicit note that 'actual usage in posts/pages is not checked.' This is passive retrieval and analysis of…
Attacks that exploit this kind of access
The rule that runs audit_unused_media safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Elementify MCP, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For audit_unused_media, this is the rule to start with:
audit_unused_media is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Elementify MCP, apply this rule, and every audit_unused_media call is checked against it from then on.
Questions about audit_unused_media
Audit the media library for potentially unused attachments. Returns media items that are older than a specified number of days and optionally smaller than a size threshold. This is a heuristic audit — actual usage in posts/pages is not checked. It is categorised as a Read tool in the Elementify MCP MCP Server, which means it retrieves data without modifying state.
Register the Elementify MCP server in PolicyLayer and add a rule for audit_unused_media: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Elementify MCP. Nothing to install.
audit_unused_media is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the audit_unused_media rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for audit_unused_media. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
audit_unused_media is provided by the Elementify MCP server (vamerli/elementify-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Elementify, and thousands of servers like it.
This server
Across the catalogue