Skip to main content
Glama

image_transform

Fetches a public image and returns it resized, cropped or converted, as a base64 data URL with the output size. Fit modes scale-down, contain, cover, crop, pad. Max 4 MB output. 0.005 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
fitNoscale-down, contain, cover, crop or padscale-down
urlYesPublic image URL
widthNo
formatNowebp, avif, jpeg, png or autowebp
heightNo
qualityNo
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

The description provides highly valuable behavioral constraints beyond the schema: the output is a base64 data URL, there is a 4MB limit, and a specific cost structure (0.005 USDC per call). This information is crucial for a successful agent call and is missing from the annotations.

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 dense, but every sentence contributes functional information—what it does, what the outputs are, the limits, and the cost. It is efficiently structured for a highly technical tool.

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?

While it explains the output format and price, the description does not guide the user through the prerequisite payment process defined in the paymentProof parameter. For a functional tool, the payment setup is a critical piece of missing context.

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 57% schema coverage, the description adds necessary context by listing specific fit modes and output constraints (4MB limit). However, it fails to translate the complex payment workflow (via the paymentProof parameter) into plain language, leaving that critical procedural knowledge to 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 identifies the action (fetches and transforms) and the resource (a public image). While it does not explicitly differentiate from other image-related siblings in the list, its function as an image manipulation utility is unambiguous.

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?

The tool is clearly defined as an image manipulation function, implying usage when an AI needs to modify an existing image. However, it provides no guidance on when it *shouldn't* be used (e.g., if the image is hosted on a private service or requires specific security clearances).

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.