Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as FreeDailyPro Tools. If you published it, claim ownership there.

image_compress

Read-onlyIdempotent

Make an image file smaller: same format unless format is given (png, jpeg, webp, avif, gif, tiff), quality 1-100 for JPEG/WebP/AVIF (default 80), PNG stays lossless unless quality is below 100 (then a smaller 256-colour palette), metadata removed unless stripMetadata is false, optional maxWidth/maxHeight (never enlarges). If the file cannot be made smaller in its own format the original bytes come back unchanged and the note says so

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileBase64": "<fileBase64>"
    },
    "name": "image_compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNopng, jpeg (or jpg), webp, avif, gif, tiff, bmp or ico; image/... types also work. Default: the same format as the input
qualityNo0-1 (for example 0.8) or 1-100 (for example 80); JPEG, WebP, AVIF, and palette PNG
losslessNoWebP/AVIF lossless
maxWidthNoShrink to at most this width in pixels, for example 1920.
maxHeightNoShrink to at most this height in pixels, for example 1080.
fileBase64YesThe input file as a base64 string, without a data: prefix.
stripMetadataNoRemove EXIF/GPS/colour-profile data. Default true
backgroundColorNoFill for transparent areas (always used for JPEG), e.g. '#ffffff' or 'white'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
    • addedInput schema / properties / maxHeight / description
      Added value: +"Shrink to at most this height in pixels, for example 1080."
    • addedInput schema / properties / maxWidth / description
      Added value: +"Shrink to at most this width in pixels, for example 1920."
  2. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare it read-only, idempotent, non-destructive, and closed-world, yet the description adds substantial operational detail: default quality, metadata stripping, no enlargement, PNG lossless/palette behavior, and unchanged-original fallback with a note. This is rich behavioral context beyond what the annotations provide.

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?

The description is front-loaded with the core action and every clause carries operational meaning for an 8-parameter tool. It is a long run-on sentence, but it remains dense and readable rather than padded.

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

Completeness4/5

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

With no output schema, the description thoroughly covers compression behavior, format handling, metadata removal, and the fallback case. It leaves a small gap by not explicitly describing the response shape beyond saying the note reports when the original is returned.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds useful meaning not fully captured in the schema: default quality 80, PNG's 256-colour palette below quality 100, and the guarantee that maxWidth/maxHeight never enlarge. It does not mention lossless or backgroundColor, so it is not fully comprehensive.

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 and resource ('Make an image file smaller') and clarifies the default scope (same format unless format is given). It does not explicitly differentiate itself from siblings such as image_convert or image_resize, so sibling routing remains implicit rather than explicit.

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 implied by the core action, and the fallback behavior is described, but there is no explicit when-to-use or when-not-to-use guidance. No alternatives like image_convert or image_resize are named, so an agent gets limited help choosing among similar tools.

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