Skip to main content
Glama
WendongAI

1pdf

by WendongAI

jpg_to_pdf

Convert a JPG or JPEG image into a PDF page. Provide the file path to create a PDF from a single image.

Instructions

Convert a single JPG/JPEG image to a PDF page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesAbsolute path to the PDF file
output_nameNoOutput file path (defaults to same dir with suffix)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, but it only states the conversion operation without detailing side effects, output file creation, overwrite behavior, or return values. It does not clarify whether the output is a new PDF file or how the output path is determined, though the schema partially covers output_name.

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 a single 9-word sentence that is front-loaded and contains no fluff. Every word contributes to the core purpose, making it highly concise and well-structured.

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?

Given the simple tool complexity and full schema parameter coverage, the description is mostly adequate, but it lacks behavioral details about output file naming, overwrite, and side effects, and there are no annotations to fill that gap. The schema's output_name description provides some context, but the description itself is minimal.

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?

The input schema has 100% coverage for both parameters, so the baseline is 3. The description adds minimal meaning by clarifying that the input is a JPG/JPEG image, which partially corrects the schema's misleading 'Absolute path to the PDF file' description, but it does not elaborate on output_name.

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 'Convert a single JPG/JPEG image to a PDF page' clearly states the verb (convert), resource (JPG/JPEG image), and output (PDF page). It also distinguishes from sibling converters like png_to_pdf by specifying the format and 'single' image, making the tool's scope unambiguous.

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 explicit guidance on when to use this tool versus alternatives like image_to_pdf or other format-specific converters. It only states the basic conversion purpose, with no mention of conditions, exclusions, or alternative tools, leaving the agent to infer usage solely from the name.

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/WendongAI/onepdf-mcp-server'

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