Skip to main content
Glama
pdf4me
by pdf4me

convert_image_format

Convert local images between BMP, GIF, JPG, PNG, and TIFF formats. Specify source path, current format, and target format to get a converted file.

Instructions

Convert a local image between formats (BMP, GIF, JPG, PNG, TIFF) using the PDF4me ConvertImageFormat API. Provide the local image path plus current and new format. Supports sync/async processing and optional output directory and output file name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesLocal path to the source image.
output_dirNo
new_image_formatNoTarget image format (BMP, GIF, JPG, PNG, TIFF).PNG
output_file_nameNo
current_image_formatNoSource image format (BMP, GIF, JPG, PNG, TIFF).JPG
Behavior3/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It mentions sync/async processing and optional output settings, but does not explain return behavior, file system side effects, or error conditions. It adds some value beyond the schema but lacks depth.

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 three sentences, front-loaded with the primary action, and contains no redundant or filler text. Every sentence adds relevant detail about scope, formats, and processing options.

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?

For a simple file conversion tool with a small schema and no output schema, the description covers the essentials: operation, file source, supported formats, processing modes, and output options. It does not describe return values, but that is less critical here. A minor gap is the lack of guidance on parameter defaults for current_image_format.

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 coverage is 60%, and the description clarifies the roles of current/new format and output options, which maps to the schema parameters. However, it does not compensate for the undocumented output_dir and output_file_name semantics in detail, and merely restates defaults already in the schema.

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 a specific action ('Convert a local image between formats'), names the resource (local image), and lists supported formats. This distinguishes it from sibling image tools like resize_image or compress_image, which serve different purposes.

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

Usage Guidelines4/5

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

It provides clear context on when to use the tool: for converting local images between specified formats using the PDF4me API. It does not explicitly mention alternatives or exclusions, but the purpose is specific enough that no confusion with sibling tools is likely.

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/pdf4me/pdf4me-mcp'

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