cleanup_files

输出目录路径(可选,默认 ./output)

Server Mac-Camera-MCP mcpservice/mac-camera-mcp
Category Destructive
Risk class Critical
Parameters 00 required

What cleanup_files does on Mac-Camera-MCP

AI agents call cleanup_files to permanently remove resources in Mac-Camera-MCP — typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

Why cleanup_files needs a policy

A 'cleanup_files' tool on a camera/recording server almost certainly deletes or purges captured media files from the output directory. The description is largely uninformative (just mentions the output directory parameter), but the name strongly implies irreversible deletion of files. This would be a Destructive operation as deleted files typically cannot be recovered.

From the tool's definition Tool name 'cleanup_files' combined with server context of managing photo/video output files; description mentions 'output directory path (optional, default ./output)'

Questions about cleanup_files

What does the cleanup_files tool do? +

输出目录路径(可选,默认 ./output). It is categorised as a Destructive tool in the Mac-Camera-MCP MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.

How do I enforce a policy on cleanup_files? +

Register the Mac-Camera- MCP server in PolicyLayer and add a rule for cleanup_files: 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 Mac-Camera-MCP. Nothing to install.

What risk level is cleanup_files? +

cleanup_files is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit cleanup_files? +

Yes. Add a rate_limit block to the cleanup_files 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.

How do I block cleanup_files completely? +

Set action: deny in the PolicyLayer policy for cleanup_files. 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.

What MCP server provides cleanup_files? +

cleanup_files is provided by the Mac-Camera- MCP server (mcpservice/mac-camera-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

cleanup_files is one line of Mac-Camera-'s registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.