Skip to main content
Glama

Convert image format

image_convert
Idempotent

Convert an image to a target format such as JPEG, PNG, WebP, AVIF, TIFF, HEIF, or GIF. Set quality and output path to control file size and destination.

Instructions

Convert an image to a target format.

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": {
      "input_path": "<input_path>",
      "output_format": "<output_format>"
    },
    "name": "image_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
qualityNoQuality (1-100). Default: 85.
input_pathYesSource image path.
output_pathNoOutput image path.
output_formatYesTarget image format.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and openWorldHint=false, and the description adds nothing beyond that safety profile. It does not say whether an existing output file is overwritten, whether quality is ignored for lossless formats like png, or how the source format affects the result.

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?

One short, front-loaded sentence with no filler or redundancy. It is efficient, though its brevity borders on under-specification rather than pure conciseness.

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?

All four parameters are fully described in the schema, there is no output schema, and annotations cover safety and idempotency, so the structural burden is light. Still, for a mutation tool that writes a file, the definition says nothing about overwrite behavior or format-specific quality handling, leaving a meaningful gap.

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 input_path, output_path, output_format, and the quality range/default are all documented in the schema itself. The description adds no additional meaning, which matches the baseline of 3 when the schema carries parameter documentation.

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 an image') plus the target concept ('target format'), so the agent knows the operation. It stops short of distinguishing this from the sibling image_compress, which is the most likely confusion point for format conversion vs. size reduction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no mention of alternatives such as image_compress. The agent must infer from the sibling names alone that compression and format conversion are different operations.

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