Skip to main content
Glama

Compress image

compress-image

Make JPG, PNG and WebP files smaller. Accepts jpg, jpeg, png, webp. Returns the result file.

Input Schema

NameRequiredDescriptionDefault
filesYesAccepts jpg, jpeg, png, webp; at most 50 MB in total.
optionsNoOptional settings; omitted ones use their default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description usefully adds that the tool 'returns the result file', implying a new output rather than an in-place overwrite. It says nothing about what compression actually does (lossy/lossy-lossless tradeoffs, how quality 75 affects output, whether the original is preserved), so it adds only modest context above the annotations.

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?

Three short sentences, front-loaded with the core action and the format list. The second sentence largely restates the first (only adding 'jpeg'), so there is a small amount of redundancy, but nothing bloated.

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 batch file-mutation tool with nested objects and no output schema, 'Returns the result file' is the only return-value signal and it is vague — file objects? URLs? base64? Nothing indicates the output shape or whether files are downloadable, and no mention of size/quality side effects, leaving a meaningful gap for an agent chunking a multi-file workflow.

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 the nested file fields (upload_id vs content_base64) and the 50 MB / maxItems limits are already documented structurally. The description adds no meaning for the non-obvious `options.quality` (30–95, default 75) or `maxWidth` (default 0 = presumably no limit) parameters, 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+resource ("Make JPG, PNG and WebP files smaller") and names the supported input formats, so an agent can tell it apart from convert-image or edit-image on the basis of intent. It stops short of explicitly contrasting itself with those siblings, which is the only thing separating it from a 5.

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

Usage Guidelines3/5

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

Usage is only implied: 'make files smaller' plus a format restriction that tacitly rules out PDFs (compress-pdf) or conversions (convert-image). There is no explicit when-to-use statement, no exclusion, and no named alternative the agent should consider instead.

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