Skip to main content
Glama

image_convert

Convert image files or entire folders between jpg, png, webp, bmp, and tiff formats, saving the results to a specified output directory.

Instructions

批量格式转换,fmt 取 jpg/png/webp/bmp/tiff(不带点也行)。input_path 可为单文件或目录。

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_dir": "<output_dir>"
    },
    "name": "image_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
fmtNowebp
input_pathYes
output_dirYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 that directory inputs are supported (implying batch traversal), but says nothing about overwrite behavior in output_dir, recursion depth, output naming, or quality/settings per format — all critical for a write-producing conversion tool.

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?

Two short, front-loaded sentences with no filler; the format list and input flexibility are stated directly. Minor deduction because the format enumeration dominates while output_dir gets none of the space.

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?

For a three-parameter mutating tool with no annotations and no output schema, the description leaves important gaps: output naming, overwrite/collision behavior, and whether directories are processed recursively are all unstated. The agent could call it but cannot predict the result of a batch run.

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?

With 0% schema description coverage, the description must compensate and does partially: it enumerates valid fmt values (jpg/png/webp/bmp/tiff, dots optional) and clarifies that input_path accepts a file or a directory. However, output_dir is never explained, and no value syntax or edge cases are given for paths.

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 gives a specific verb+resource ('批量格式转换' – batch format conversion) and names the format set, so the agent knows exactly what the tool does. It does not explicitly contrast with siblings like image_compress or image_resize, but the operation is distinct enough to be selected without that.

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, no prerequisite/permission notes, and no mention of when to prefer this over image_compress or image_resize. The note about input_path being a file or directory is parameter behavior, not usage routing.

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