Skip to main content
Glama

Merge Multiple PDFs

pdf_merge

Merge two or more local PDF files into one document entirely offline, keeping files on disk; supports up to 3 files per merge on the free tier and unlimited files with PRO.

Instructions

Merge 2 or more local PDF files into a single PDF completely offline. Free tier supports up to 3 files per merge; ThisMyOwn PRO unlocks unlimited files.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputPaths": "<inputPaths>"
    },
    "name": "pdf_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputPathsYesOrdered array of local PDF file paths to merge
outputPathNoOptional output PDF path (defaults to <first>-merged.pdf)
stripMetadataNoStrip document metadata fields from merged output

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does add real value by disclosing offline/local processing (no upload) and the tier-based file cap. It omits mutation-relevant behavior such as whether an existing output file is overwritten, how failures on one input are handled, and whether input order determines page order.

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?

Two front-loaded sentences with no redundant wording; the license/limit clause is promotional in tone but is the only place the per-merge file cap is stated, so it earns its place.

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 three-parameter tool with no output schema, the definition covers purpose, locality, and the tier limit, and the schema supplies the default output path. Overwrite/error behavior for a file-writing operation is the remaining gap.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents inputPaths ordering, the outputPath default, and stripMetadata; the baseline is 3. The description's '2 or more' restates the schema's minItems=2 and adds nothing about outputPath or stripMetadata, so it sits at a modest baseline rather than above it.

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?

States a specific verb (merge), resource (local PDF files), and output (single PDF), plus a scope qualifier ('completely offline', 'local') that cleanly separates it from siblings like pdf_split or pdf_compress.

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?

Conveys the minimum arity ('2 or more') and a quota (free tier max 3 files), which implies when it applies, but gives no explicit routing guidance versus siblings such as pdf_images_to_pdf or pdf_text_to_pdf, and no when-not-to-use conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.