Skip to main content
Glama
pdf-toolkit-mcp

pdf-toolkit-mcp

by 0xmortuex

merge_pdfs

Combine multiple PDFs in the order you specify into one new document while keeping bookmarks; optionally set output path, overwrite existing files, and use one password for encrypted inputs.

Instructions

Concatenate PDFs in the order given into one new file (bookmarks are kept).

output_path: must end in .pdf. Default: merged.pdf next to the first input. overwrite: replace the output if it exists. Default false: an existing file is an error. password: if any input is encrypted (one password for all; the output is not encrypted).

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": {
      "paths": "<paths>"
    },
    "name": "merge_pdfs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYes
passwordNo
overwriteNo
output_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare it is not read-only, not destructive, and closed-world, so the description doesn't need to re-establish safety. It adds genuinely new behavior: the default refuses to clobber an existing file, bookmarks are preserved, and a single password applies to all inputs while the output stays unencrypted. It does not mention limits on input count or size.

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?

Lead sentence states the operation and its key guarantee, followed by terse per-parameter notes with defaults and constraints. No redundant restatement of the tool name or the schema types.

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?

With an output schema present, return values need no explanation, and all four inputs are documented with defaults and edge behavior. Minor gaps remain around large inputs or per-file error handling when one input is invalid, but nothing essential to a correct call is missing.

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 coverage is 0%, so the description carries the full burden and does: paths order is meaningful, output_path must end in .pdf with a computed default next to the first input, overwrite defaults to false and makes existing files an error, and password is shared across inputs. These are constraints and defaults the schema type information does not convey.

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?

"Concatenate PDFs in the order given into one new file" names a specific verb (concatenate), a specific resource (PDFs), and states the ordering guarantee. This is naturally distinct from every sibling (split_pdf, extract_pages, rotate_pages), so an agent cannot confuse the operation.

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?

Usage is only implied: an agent infers this is the tool for combining multiple PDFs, and the notes on overwrite/error behavior give useful context. However, there is no explicit when-to-use framing or routing to alternatives such as split_pdf for the inverse operation, and no statement about minimum inputs.

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