Skip to main content
Glama
pdfdotco

PDF.co MCP Server

Official
by pdfdotco

pdf_merge

Merge multiple files (PDF, DOC, XLS, images, ZIP) into a single PDF document using URLs or uploaded files.

Instructions

Merge PDF from two or more PDF, DOC, XLS, images, even ZIP with documents and images into a new PDF.
Ref: https://developer.pdf.co/api-reference/merge/various-files.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURLs to the source files as a comma-separated list. Supports PDF, DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, images, and more. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.
httpusernameNoHTTP auth user name if required to access source url. (Optional)
httppasswordNoHTTP auth password if required to access source url. (Optional)
nameNoFile name for the generated output. (Optional)
api_keyNoPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)

Implementation Reference

  • The 'merge_pdf' helper function that the handler calls - makes an API request to the 'pdf/merge2' endpoint with the given ConversionParams and optional api_key.
    async def merge_pdf(params: ConversionParams, api_key: str | None = None) -> BaseResponse:
        return await request("pdf/merge2", params, api_key=api_key)
Behavior3/5

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

No annotations exist; the description adds some behavioral context (supports various file types and ZIP archives) but does not disclose important traits like merge order, file size limits, or authentication requirements beyond the schema. The reference URL may provide more detail, but the description itself is sparse.

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 extremely concise with two short sentences: one stating purpose and one linking to documentation. It is front-loaded and efficient, with no unnecessary text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema is provided, and the description does not explain what the tool returns (e.g., a URL or file reference). It also does not mention whether the merge is synchronous or requires job checking (sibling tools exist for that). The description is incomplete for a merging tool with no output schema.

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 the schema descriptions are detailed (especially for 'url'). The tool description does not add new parameter insights beyond what the schema provides, so it meets the baseline of 3.

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 the tool merges multiple files (PDF, DOC, XLS, images, ZIP) into a new PDF, using a specific verb 'merge' and resource 'PDF', and distinguishes from sibling conversion tools like csv_to_pdf, image_to_pdf, pdf_split, etc.

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 implies usage for combining multiple files into a single PDF but does not explicitly state when to use this tool versus alternatives (e.g., when to use pdf_merge vs document_to_pdf or image_to_pdf). No exclusions or preferred scenarios are provided.

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/pdfdotco/pdfco-mcp'

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