Skip to main content
Glama
lihongwen

PDF Reader MCP Server

by lihongwen

images_to_pdf

Convert multiple images into a single PDF document, preserving the original sequence. Customize page size, quality, and metadata.

Instructions

Convert multiple images to a single PDF.

Images are processed in the order specified in the image_paths list,
preserving their sequence in the final PDF document.

Args:
    image_paths: List of image file paths to convert
    output_file: Output PDF file path
    page_size: Page size ('A4', 'Letter', 'Legal', or 'auto')
    quality: JPEG quality for compression (1-100)
    title: PDF document title (optional)
    author: PDF document author (optional)
    
Returns:
    JSON string with conversion results

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_pathsYes
output_fileYes
page_sizeNoA4
qualityNo
titleNo
authorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It discloses processing order, parameter explanations, and that output is a JSON string. It does not cover error handling or side effects, but overall it is transparent enough for typical use.

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 front-loaded with the core purpose and uses a structured docstring format. It is slightly verbose due to parameter listings, but each sentence adds value.

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?

The description covers the tool's main behavior, parameters, and return type. It lacks details on error handling or constraints like supported image formats, but given the parameter count and absence of annotations, it is fairly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must add meaning. It does so by listing each parameter with its type and semantics (e.g., page_size allowed values, quality range), fully compensating for schema lack.

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 clearly states 'Convert multiple images to a single PDF' and specifies that images are processed in order, which distinguishes it from sibling tools like pdf_to_images or merge_pdfs.

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 description does not explicitly mention when to use this tool versus alternatives. It implies usage for creating a PDF from images but lacks guidance on exclusions or when not to use it.

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/lihongwen/pdfreadermcp'

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