Skip to main content
Glama

ImageCompressor.si

Run several steps on one image

run_pipeline

Run a multi-step workflow on an image in one call, for example remove the background, resize, convert and compress. Needs a Pro plan. Give "pipeline": { "steps": [{ "op", "params", "when"? }] } with ops remove_background, upscale, resize, crop, rotate, edit, watermark, convert, compress (params are the REST API's options, e.g. { "width": 1600 } or { "format": "webp", "mode": "smart" }; "when" makes a step conditional on format, min_width, max_width, min_bytes, max_bytes or has_alpha), or "preset": the name of a saved pipeline or a template (web-optimized, thumbnail, product-square, social-square, avatar, private-share). Set dry_run to see which steps would run and the resulting size without processing anything. Returns a download URL valid for one hour and a report of every step.

Input Schema

NameRequiredDescriptionDefault
nameNoThe source file's name, for the output name pattern.
presetNo
dry_runNo
versionNoA version of a saved pipeline. Default: the latest.
pipelineNoThe pipeline object. Use this or preset.
image_urlNoPublic http(s) address of the image. Use this or image_base64.
image_base64NoThe image file's bytes, base64-encoded. Use for a local file, e.g. one in the repository.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the Pro-plan requirement, that dry_run computes sizes without processing, and that results come back as a one-hour download URL plus a per-step report. It does not cover failure/partial-failure behavior or any cost/rate-limit implications.

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?

Dense but front-loaded, leading with the core purpose before schema detail. The pipeline/ops enumeration is necessarily long, though the parenthetical nesting makes it slightly harder to scan than a bulleted form would.

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?

For a complex 7-param tool with a nested object and no output schema, the description covers the return value and the two alternative input modes (pipeline vs preset). Minor gaps remain on how version/name interact and on step-failure handling.

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

Parameters5/5

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

Far exceeds the 71% schema coverage by documenting the nested pipeline shape (steps with op/params/when), enumerating all ops, listing the allowed 'when' conditions, and naming the available presets and templates. It also clarifies that dry_run previews rather than processes.

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

Purpose5/5

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

States a specific verb and resource ('run a multi-step workflow on an image in one call') and immediately supplies concrete op examples. It is clearly differentiated from single-op siblings like compress_image, convert_image, and remove_background, which this tool composes.

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

Usage Guidelines4/5

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

Gives a clear context for use ('one call' doing background removal, resize, convert, compress), a Pro-plan prerequisite, and a dry_run mode for previewing. It never explicitly says to prefer this over chaining the individual sibling tools, so the alternative routing is implied rather than stated.

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