Skip to main content
Glama

Convert Image

convert_image

Converts a single image to AVIF or WebP format with adjustable quality and optional compression settings, enabling smaller image outputs.

Instructions

Convert a single image to AVIF or WebP format using ImageMagick

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputPath": "<inputPath>",
      "outputFormat": "<outputFormat>"
    },
    "name": "convert_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
qualityNoQuality 1-100, default 75
criticalNoIf true, apply 25% quality drop for smaller file size
inputPathYesPath to the input image file
outputPathNoOptional custom output path
outputFormatYesOutput format

Output Schema

NameRequiredDescriptionDefault
formatYes
qualityYes
savingsYes
successYes
inputPathYes
inputSizeYes
outputPathYes
outputSizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the ImageMagick dependency, which is useful, but says nothing about overwrite behavior when outputPath already exists, directory creation, error/failure modes, or whether conversion is lossy and irreversible — all material for a file-mutating tool.

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?

A single front-loaded sentence with zero filler; the resource, scope, formats, and underlying engine all appear in one pass.

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?

An output schema exists, so return values need not be explained, and the description covers what the tool does and what engine it uses. The remaining gap is the side-effect profile (overwrite/collision handling) for a tool that writes files.

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 description coverage is 100%, so every parameter including quality, critical, and outputPath is already documented in the schema. The description adds no semantics beyond restating the two allowed formats, which the enum already enforces.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Convert a single image') and names the supported output formats, so the operation is unmistakable. The word 'single' implicitly distinguishes it from the convert_folder sibling, but no sibling is named explicitly.

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?

Usage is only implied: 'single image' suggests this is for individual files rather than batches, which nudges an agent toward convert_folder for bulk work. There is no explicit when/when-not guidance and no mention of prerequisites such as a valid source file or an existing ImageMagick install.

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