Skip to main content
Glama

resize_image

Resize and compress a base64-encoded image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYesBase64-encoded image data
widthYesTarget width in pixels
formatNoOutput formatpng
heightYesTarget height in pixels
qualityNoJPEG quality (1-100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description carries full behavioral disclosure burden. It mentions the input format but omits what the function returns (e.g., base64 output), potential compression effects, or aspect ratio behavior. This lack of behavioral context is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, waste-free sentence that communicates the core function efficiently. No redundant words or excessive detail.

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

Completeness2/5

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

The tool has no output schema, and the description does not specify the return format. It also fails to mention how width/height interact (e.g., aspect ratio distortion) or that quality only applies to JPEG. This makes the description incomplete for correct usage.

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?

All five parameters have descriptions in the schema (100% coverage), so the description does not need to explain them. The schema already defines width, height, format, and quality, making the description's parameter contribution minimal.

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?

The description clearly states the tool resizes and compresses a base64-encoded image, providing a specific verb and resource. It distinguishes itself from sibling base64 tools (encode/decode_base64) by focusing on image transformation.

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?

The description gives no explicit guidance on when to use this tool versus alternatives. It merely states what it does, implying usage only when resizing an image, but lacks explicit context or exclusions.

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