Skip to main content
Glama

img_convert

图片格式转换 / 压缩(1 credit/次)。失败自动退款。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes目标图片文件 ID
qualityNojpg/webp 质量(1-100)
filenameNo可选输出文件名
to_formatYes目标格式:png / jpg / webp / bmp / gif / tiff

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description must disclose behavior. It mentions credit cost and auto-refund on failure, which adds context. However, it does not describe side effects (e.g., whether original file is modified or destroyed), rate limits, or output details.

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?

The description is extremely concise with two sentences, no fluff. It could benefit from slightly more detail, but it is well-structured and front-loaded with key information.

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?

Given no output schema and 4 parameters, the description lacks completeness. It does not explain return values or outcome, and provides minimal behavioral context for a conversion tool.

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 the schema already explains parameters. The description adds no additional meaning beyond what is in the schema.

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 clearly states the tool performs image format conversion and compression, including cost and refund policy. It is distinct from sibling tools which are PDF-focused, though it doesn't explicitly differentiate from img_to_pdf.

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?

The description provides no guidance on when to use this tool vs alternatives, no prerequisites, and no context about input file source or output handling.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a unique purpose with clear naming (e.g., pdf_compress vs pdf_encrypt). The two watermark tools are distinguished by 'image' vs text. No ambiguity.

Naming Consistency4/5

Most tools follow a consistent 'prefix_verb' pattern (e.g., pdf_merge, pdf_split). The 'img_to_pdf' and 'pdf_to_img' break the verb pattern but are still clear and predictable.

Tool Count5/5

10 tools is ideal for a PDF toolbox—neither too few nor too many. Each tool provides a distinct utility without overwhelming the agent.

Completeness4/5

Covers essential PDF operations (merge, split, compress, encrypt/decrypt, watermark, image conversion). Missing some advanced features like OCR or text extraction, but core workflows are well covered.

Resources