Skip to main content
Glama

imgfactory

img_convert_to_webp

Use when WebP convert: png to webp, jpg to webp, webp converter, smaller web images, alpha kept. image -> image/webp. 0.005 USDC per call (prepaid credit or x402 signature).

Input Schema

NameRequiredDescriptionDefault
urlNohttp(s) URL of the image (server fetches it)
dataNodata: URL
base64Noraw base64 of the image bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose a meaningful behavioral trait: a cost of 0.005 USDC per call payable by prepaid credit or x402 signature. It also notes alpha preservation in the output. What is missing is failure behavior, size limits, or whether animated formats are accepted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short, but the opening is a keyword salad ('Use when WebP convert: png to webp, jpg to webp, webp converter') that repeats the same idea three ways. The genuinely useful content — cost and alpha preservation — is buried at the end rather than front-loaded.

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 three-input transform with full schema coverage and no output schema, the description covers the essentials: what comes in, what comes out ('image -> image/webp'), alpha handling, and the payment model. Only edge-case behavior (invalid/corrupt input, size caps) is unaddressed.

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%, and each of url/data/base64 is documented in the schema itself (URL fetch vs data: URL vs raw base64). The description adds no guidance on which input form to prefer or on mutual exclusivity, so baseline 3 applies.

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?

States a specific verb+resource ('WebP convert', 'image -> image/webp') and enumerates supported sources (png, jpg), and 'alpha kept' clarifies the output. The phrasing is keyword-stuffed rather than sentence-formed, but an agent can still tell this apart from siblings like img_convert_to_jpg.

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?

'Use when ... smaller web images' implies the use case (web asset optimization), but there is no explicit when-not guidance, no mention of how this differs from img_convert_to_jpg beyond the target format, and no advice on choosing between url, data, and base64 inputs.

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.

Resources