Skip to main content
Glama

pdf_merge

Combine multiple PDF files into one new document in a specified order, with an optional custom output name for the merged result.

Instructions

Join PDFs in the given order into a new PDF.

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": "pdf_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYes
outputNomerged.pdf

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose that a new file is produced and that input order is preserved, but says nothing about whether an existing output file is overwritten, what happens with invalid or encrypted inputs, or whether the source PDFs are left untouched.

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?

A single front-loaded sentence with no filler, and the ordering constraint is placed where it matters. It is efficient, though the terseness contributes to the missing parameter and behavior detail.

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?

For a simple two-parameter tool with no annotations and no output schema, the description should at minimum cover the output path and overwrite behavior. As written, an agent cannot tell where the merged file lands or whether it may clobber an existing file.

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

Parameters2/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 compensate. 'In the given order' usefully explains that the paths array is order-sensitive, but the output parameter (default 'merged.pdf') is never mentioned, leaving half the parameters undocumented in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Join PDFs') plus the ordering semantics and the result ('into a new PDF'), which clearly separates it from siblings like pdf_compress or pdf_extract_pages. It stops short of naming any sibling explicitly, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not guidance and no mention of alternatives such as pdf_extract_pages for splitting. The only implied guidance is that multiple PDFs are involved, which an agent must infer from 'Join PDFs'.

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