Skip to main content
Glama

Merge PDFs into one file

pdf_merge

Combine multiple PDFs into one file in specified order, preserving original page sizes. Inputs remain unchanged. Free tier supports up to 5 files per merge.

Instructions

Call this tool to join several PDFs into one, in the order given. Page sizes are kept as-is, so a merged file may have mixed sizes, and the answer says so. Inputs are never modified. Free tier: up to 5 files per merge.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYesThe PDFs to join, in the order they should appear
out_pathYesWhere to write the merged PDF
overwriteNoReplace out_path if a file is already there. Default false: an existing file is never overwritten

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: 'Page sizes are kept as-is', 'Inputs are never modified', and 'Free tier: up to 5 files per merge'. It does not mention error handling or output details, but these are less critical for a merge operation.

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 concise, consisting of three sentences that cover purpose, behavior, and constraints without unnecessary details. It is well-structured and front-loaded with the primary action.

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?

For a simple merge tool, the description provides enough context for an agent to call it correctly: it specifies the order, the output file, and the free tier limit. It lacks details on error conditions or file format specifics, but these are not essential for a basic operation and the schema covers parameter-level details.

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 description coverage is 100% for all three parameters (paths, out_path, overwrite). The main description does not add additional meaning beyond the schema; it only reinforces the order for paths. Since the schema fully documents each parameter, the baseline score of 3 is appropriate.

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's purpose with the verb 'join' and the resource 'PDFs', specifying that it combines several PDFs into one in the given order. This distinguishes it from sibling tools like pdf_split, pdf_rotate, or pdf_stamp.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context by saying 'Call this tool to join several PDFs into one' and notes the order of files. However, it does not explicitly compare with alternatives or state when not to use it, though the purpose is sufficiently distinct from siblings like pdf_split.

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