Skip to main content
Glama

resize

Resize or crop an image to an exact width/height. $0.005 per call. Input: an image via source URL. Params: width, height (pixels); fit (scale-down|contain|pad|squeeze|cover|crop); gravity (auto|face|left|right|top|bottom|center|entropy — focal point for cover/crop, use 'face' to keep faces); background (fill color for 'pad', e.g. 'white' or 'rgba(0,0,0,0)' for transparent). At least one of width/height is required. Output: the transformed image as a short-lived signed URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes
sourceYesPublic https:// URL of the source image to process.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations indicate modification (readOnlyHint=false). Description adds cost per call and output format. Does not disclose side effects, limits, or error behavior. Adequate but not rich.

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?

Concise with three sentences covering purpose, cost, parameters, and output. Front-loaded. Could be more structured but no redundancy.

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?

Covers basic parameters and output, but lacks details on error handling, aspect ratio behavior when only one dimension given, and limitations. Adequate for a resize tool but leaves gaps.

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?

Description provides detailed parameter meanings for width, height, fit, gravity, and background, which are missing from schema (50% coverage). Adds value beyond schema by explaining behaviors like gravity focal point and background fill.

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?

Clearly states the tool resizes or crops images to exact dimensions. Specifies input via source URL and output as a short-lived signed URL. Distinct from sibling tools like 'optimize' or 'remove_background'.

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?

Implies usage for resizing/cropping images but lacks explicit when-to-use or alternatives compared to siblings. No do-not-use guidance. Context is clear but not definitive.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct operation: optimization, pipeline processing, background removal, resizing, upscaling, and service discovery. No two tools overlap in purpose.

Naming Consistency5/5

All tool names follow the consistent verb_noun pattern in lowercase snake_case (optimize, process, remove_background, resize, service_info, upscale).

Tool Count5/5

With 6 tools, the server is well-scoped for an image processing service. Each tool earns its place, covering core operations, a pipeline composer, and metadata discovery.

Completeness4/5

The tool set directly offers essential transformations (compress, resize, background removal, upscale) and a pipeline tool (process) that can invoke additional ops via API, covering most common workflows. Missing direct tools for rotation or filters are minor gaps.

Resources