Skip to main content
Glama

imgfactory

img_convert_image_to_pdf

Image to PDF: turn a jpg or png into a single-page PDF, image to pdf converter. image -> application/pdf. 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

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full load. It does add real value by disclosing pricing and payment modes (0.005 USDC per call, prepaid credit or x402 signature) and by stating the output is single-page. It omits permissions/auth requirements beyond the payment note, and says nothing about limits such as input size or failure behavior.

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?

The core statement is front-loaded and short, but the same idea is restated three times ('Image to PDF', 'image to pdf converter', 'image -> application/pdf'), which is keyword padding rather than new information. The pricing sentence is the only distinct addition.

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?

For a low-complexity tool this is close to adequate: input sources, output type, and cost are covered, and there is no output schema to lean on. However, it never says what the call actually returns (a URL, inline base64, or binary PDF), which is the main thing an agent needs after invoking it.

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 100%, and each of the three mutually exclusive inputs (url, base64, data) is already documented in the schema with server-fetch semantics for url. The description adds no meaning beyond that, so the baseline of 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?

The description states a concrete verb and resource pair ('turn a jpg or png into a single-page PDF') and pins the output MIME type ('image -> application/pdf'), which separates it from the jpg/webp conversion siblings. It does not name any sibling explicitly, so the differentiation is inferential rather than stated.

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?

Usage is implied: the agent can infer it should call this when a PDF artifact is wanted and the source is a jpg or png, and the input-format restriction is stated. There is no explicit when-not guidance, no prerequisites, and no pointer to the sibling that converts in the other direction.

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