Skip to main content
Glama

convert_image

Convert image files between formats including PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, and AVIF. Specify target format, quality settings, and output location for format compatibility.

Instructions

Convert an image to a different format.

Supported formats: PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, AVIF.

Args: path: Absolute path to the image file. format: Target format (e.g. 'png', 'webp', 'jpeg'). output_path: Where to save. Defaults to .<new_ext> next to input. quality: Quality for lossy formats (1-100). Default 85.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
formatYes
output_pathNo
qualityNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool writes a new file (implied by 'save'), supports specific formats, and has default behaviors for output_path and quality. However, it lacks details on error handling, permissions, or side effects like overwriting files.

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 front-loaded with the core purpose, followed by a concise list of supported formats and well-structured parameter explanations. Every sentence adds value without redundancy, making it efficient and easy to parse.

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?

Given the tool's moderate complexity, no annotations, and an output schema (which handles return values), the description is largely complete. It covers purpose, parameters, and supported formats, but could improve by mentioning input format support or error cases for a higher score.

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 description coverage is 0%, so the description must compensate. It adds meaningful semantics for all parameters: path as an absolute file path, format as target with examples, output_path with default behavior, and quality with range and default. This goes beyond the bare schema, though it could specify format case-sensitivity or quality applicability.

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's purpose with a specific verb ('convert') and resource ('image'), distinguishing it from siblings like compress_image, resize_image, or convert_video. It specifies the transformation from one format to another, making the scope unambiguous.

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 implies usage for format conversion but does not explicitly state when to use this tool versus alternatives like compress_image or create_thumbnail. It lists supported formats, which provides some context, but lacks guidance on exclusions or prerequisites for use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Adityaaery20/media-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server