Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

image_compress

Idempotent

Compress images to reduce file size, optionally to a byte budget, with quality, downscale, and format controls.

Instructions

imagepeek: Compress an image, optionally to a byte budget. To change the format only use image_convert. Returns a smaller image or unchanged original, metadata included (returned_original). require_smaller=true: uncharged 422 no_smaller_output. Re-encoding strips EXIF/GPS/XMP/IPTC. Input caps: 10 MB, 40 MP. Output caps: 15 MB, 50 MP. Images are not logged; a result is kept only with output "url" (24 h). Typically 0.5-2 s. Price: USD 0.003. Free: 3 imagepeek calls per IP per UTC day. Docs: https://tanod.dev/learn/image-compress-api.html

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
fitNoNeeds max_bytes. quality keeps size; downscale tries up to 6 smaller same-ratio sizes in one time budget. Downscale needs quality >=10 if set. Check target_met; fit is not guaranteed.quality
urlNoPublic http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64.
colorsNoPNG palette size.
formatNoOutput format; defaults to input.
outputNobase64 (default): inline. url: stored for 24 hours; link, metadata.base64
qualityNoTarget quality, or ceiling with max_bytes.
keep_iccNoKeep ICC colour profile.
losslessNoLossless WebP.
min_sideNoDownscale only: shortest side floor in px. Never enlarges; smaller inputs keep size.
max_bytesNoTry highest quality that fits.
auto_orientNoApply the EXIF orientation first.
progressiveNoProgressive JPEG.
image_base64NoThe image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url.
require_smallerNoReject original fallback: 422 no_smaller_output.

Output Schema

NameRequiredDescriptionDefault
urlNo
bytesNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
inputNo
notesNo
widthNo
formatNo
heightNo
sha256No
sourceNo
encodesNo
final_urlNo
operationNo
expires_atNo
source_urlNo
target_metNo
after_bytesNo
data_base64No
saved_bytesNo
saved_ratioNo
before_bytesNo
content_typeNo
quality_usedNo
scale_factorNo
downscale_stepsNo
returned_originalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so safety is largely covered. The description still adds genuinely non-obvious behavior: re-encoding strips EXIF/GPS/XMP/IPTC, images are not logged, and url output persists for 24 h. That is useful, though it is delivered as a dense telegraphic block rather than structured caveats.

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?

Front-loaded with purpose and the sibling routing rule, then caps, errors, privacy, latency, price and docs in a compact sequence. No sentence is filler, but the fragment-heavy style ('Re-encoding strips EXIF/GPS/XMP/IPTC. Input caps: 10 MB, 40 MP.') packs many distinct facts into one paragraph, which costs some scannability.

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

Completeness5/5

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

For a 14-parameter tool with an output schema, this covers what the schema cannot: input/output caps, latency, cost, free-tier quota, privacy/retention, error semantics and the stripped-metadata side effect. Return values are covered by the output schema and only the notable `returned_original` flag is called out, which is the right division of labor.

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; the description still adds meaning beyond the schema by tying require_smaller to an 'uncharged' 422 and by framing output=url as a 24 h retention choice. It does not add much for the many boolean flags (progressive, auto_orient, keep_icc), which rely on the schema text alone.

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+resource ('Compress an image, optionally to a byte budget') and immediately distinguishes the nearest sibling: 'To change the format only use image_convert.' An agent can route between image_compress and image_convert without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-not ('format only' → image_convert) plus conditional guidance on the two competing modes: fit=quality vs downscale, and require_smaller=true producing an uncharged 422. It also names the free-tier limit (3 calls per IP per UTC day) and price, which affects whether an agent should call it at all.

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

Deploy Server

Other Tools