Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

image_resize

Idempotent

Resize an image to specific width, height, or scale, with format conversion and fit options for web, thumbnails, or layout constraints.

Instructions

imagepeek: Resize an image. For several sizes in one call use image_thumbnail; for a box or ratio use image_crop. Returns the resized image; gravity anchors a cover crop. PNG, JPEG, WebP, GIF, TIFF, BMP, ICO, AVIF; unsupported or >40 MP: not charged. Re-encoding strips EXIF/GPS/XMP/IPTC. Output >15 MB or >50 MP: uncharged 413. Images are not logged; a result is kept only with output "url" (24 h). Typically 0.5-2 s. Price: USD 0.002. Free: 3 imagepeek calls per IP per UTC day. Docs: https://tanod.dev/learn/image-resize-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_resize"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNoWith both dimensions: inside fits, contain pads, cover crops; all keep aspect. fill stretches.inside
urlNoPublic http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64.
scaleNoInstead of width/height.
widthNoWidth in pixels; use width and/or height, or scale.
formatNoOutput format (default: the input's; ICO in, PNG out).
heightNoHeight in pixels.
outputNobase64 (default): inline. url: stored for 24 hours; link, metadata.base64
gravityNoCrop anchor; default center. Needs cover and both dimensions.
qualityNoEncoder quality 1-100 (lossy formats).
upscaleNoAllow enlargement.
losslessNoLossless WebP.
optimizeNoSlower, smaller PNG.
resampleNoResampling filter.lanczos
backgroundNoContain padding; default transparent/white.
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.

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
final_urlNo
operationNo
expires_atNo
source_urlNo
data_base64No
content_typeNo
upscale_preventedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare idempotent=true and destructiveHint=false, and the description adds genuinely useful context: EXIF/GPS/XMP/IPTC is stripped on re-encode, unsupported or >40 MP inputs are not charged, oversized output returns an uncharged 413, and results are only retained 24 h when output="url". Those are real costs and side effects an agent must anticipate. It does not describe the response shape, but an output schema exists, so the gap is minor.

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 first sentence is a tight routing header and every later clause carries operational facts (limits, price, latency, retention). It is, however, a dense semicolon chain that mixes billing, format support, and privacy in one paragraph — slightly harder to scan than a tiered structure would be.

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 17-parameter tool with no required fields, the description supplies size limits (10 MB in, >15 MB/>50 MP out), supported formats, timing, cost, free tier, retention, and a docs link. Combined with full schema coverage, an output schema, and annotations, nothing needed to call it correctly is missing.

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 coverage is 100%, so fit, gravity, output, scale, and every flag are already documented with defaults and enums. The description's only parameter-level addition is "`gravity` anchors a cover crop" and the format list, both of which restate schema text. Baseline 3 is appropriate when the schema carries parameter meaning.

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?

"Resize an image" is a specific verb plus resource, and the description immediately differentiates it from image_thumbnail ("several sizes in one call") and image_crop ("a box or ratio"). An agent can pick the right tool without opening a 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?

It names two alternatives explicitly and gives the exact condition that selects each (multiple sizes → thumbnail; box or ratio → crop). That is a complete routing rule, not an implied one, and it is front-loaded before any bulk detail.

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