Compress an image while preserving as much quality as possible. The original format is always kept. \n\nHow to use: \n- For maximum quality and detail, set lossless: true (default) and omit quality. \n- For smaller file sizes, set lossless: false and adjust quality to a lower value (e.g., 80). \n...
AI agents use compress-image to create or update resources in Image Processing MCP Server — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Image Processing MCP Server environment.
This is a Write operation because it creates or modifies data reversibly. Compression produces a new/updated image file that can be restored from backups or regenerated. It is not Destructive because the original file is not irreversibly deleted, and users can typically access previous versions or revert the compression.
From the tool's definition Tool modifies image files by compressing them with adjustable parameters (lossless flag, quality setting). Description states 'Compress an image' and explicitly notes 'The original format is always kept,' confirming the operation changes file content.
Attacks that exploit this kind of access
Compress an image while preserving as much quality as possible. The original format is always kept. \n\nHow to use: \n- For maximum quality and detail, set lossless: true (default) and omit quality. \n- For smaller file sizes, set lossless: false and adjust quality to a lower value (e.g., 80). \n- The LLM should choose lossless: true for graphics, logos, or archival, and lossless: false with a reasonable quality for web photos or when file size is a priority. \n- The tool will always keep the original format of the image. \n\nExamples: \n- Compress a photo for the web: set lossless: false, quality: 80. \n- Compress a logo for archival: set lossless: true. It is categorised as a Write tool in the Image Processing MCP Server MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Image Processing MCP Server MCP server in PolicyLayer and add a rule for compress-image: 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 Image Processing MCP Server. Nothing to install.
compress-image is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the compress-image 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 compress-image. 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.
compress-image is provided by the Image Processing MCP Server MCP server (rafael-castelo/image-processing-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →