Skip to main content
Glama

compress_image

Compress JPG, PNG, or WebP images to reduce file size with quality control.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileUrlYesPublic URL of the image file
qualityNoQuality from 0.1 to 1.0 (default 0.8)
maxWidthOrHeightNoMax dimension in pixels (default 1920)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. It says nothing about whether the source image is preserved or overwritten, what the tool returns (URL, bytes, new asset id), whether processing is synchronous, or any size/rate limits — significant gaps for a no-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One efficient sentence with the verb and supported formats front-loaded and no filler. It is appropriately sized, though it stops short of any routing or return-value context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter tool this is close, but with no output schema and no annotations the description should say what comes back (e.g., a URL to the compressed image) and whether the original is affected. Those omissions leave the agent guessing about the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters (fileUrl, quality, maxWidthOrHeight) are already documented with ranges and defaults. The description only echoes 'quality control' and adds no format or default detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Compress) and resource (JPG, PNG, or WebP images) plus the goal (reduce file size with quality control). The explicit format list implicitly separates it from compress_pdf, compress_audio, and compress_video, though it never names or rules out a sibling directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance and no mention of alternatives such as convert_image_format when the user wants a format change rather than a size reduction. The intended context is only implied by the verb 'Compress'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources