Skip to main content
Glama

Merge PDFs

pdf_merge

Combine two or more PDFs into one new file in the specified order by providing input paths and a distinct output path.

Instructions

Concatenate two or more PDFs into a new file, in the given order.

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

Input Schema

NameRequiredDescriptionDefault
outYesoutput path; must differ from every input
pathsYesabsolute paths, in order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the burden and it does disclose two useful traits: the operation produces a new file (inputs are not destroyed) and preserves the given order. It says nothing about overwrite behavior for an existing 'out' path, error handling on missing/corrupt inputs, or whether the result is written to disk versus returned.

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?

A single front-loaded sentence with zero filler; the operation and its ordering guarantee appear immediately.

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 two-parameter tool with full schema coverage and no output schema, the definition covers what is needed to call it correctly. The one real gap is overwrite/error behavior for the output path, which the schema only partially addresses.

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%, with both 'paths' and 'out' documented including the ordering and must-differ constraints, so the baseline is 3. The description's 'in the given order' reinforces the semantics of 'paths' but adds no detail beyond the schema.

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?

The description names a specific verb ('Concatenate') and resource ('two or more PDFs into a new file'), making the operation unmistakable. It does not explicitly differentiate itself from siblings like pdf_split or pdf_compress, but the purpose is unambiguous without that.

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 can infer this is the tool for combining PDFs, and the 'two or more' phrasing implies a minimum input. There is no explicit when-to-use/when-not guidance or mention of an alternative for related tasks such as splitting or reordering.

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