Skip to main content
Glama
MCP PDF Server

MCP PDF Server

by SantosRojas

merge_pdfs

Combine two or more existing PDF files into one new document while preserving the given order; specify the output filename and optional output folder.

Instructions

Combina dos o más PDFs existentes en un documento nuevo, manteniendo el orden recibido. Acepta rutas absolutas permitidas o relativas al workspace, a la carpeta de salida o a las carpetas permitidas. Usa list_pdfs si no conoces las rutas.

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

Input Schema

NameRequiredDescriptionDefault
filePathsYes
outputDirNo
overwriteNo
outputFilenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that inputs are existing files and that order is preserved in the output, but it says nothing about permissions needed, failure behavior on a missing or invalid path, or what happens when the target filename collides.

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?

Three short sentences, front-loaded with the core action, then path rules, then the escape hatch to list_pdfs. No filler or redundant restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation tool with no annotations and no output schema, the description covers the input-side essentials (what counts as a valid source and how paths resolve) but omits overwrite semantics and does not indicate what the tool returns. Adequate to invoke, but an agent could still guess wrong on collision behavior.

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 0%, so the description must compensate. It adds real meaning for filePaths (two or more files, order significant, accepted absolute vs. workspace/output/allowed-folder-relative forms) and hints at outputDir as a path base, but it never mentions overwrite or the naming constraints on outputFilename, leaving two of four parameters undocumented anywhere.

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 and resource ("Combina dos o más PDFs existentes en un documento nuevo") and states the ordering guarantee, which lets an agent distinguish it from generate_pdf (new content) without opening the schema. It stops short of explicitly contrasting with any sibling other than list_pdfs, which is offered only as a discovery helper.

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?

It gives a concrete routing rule ("Usa list_pdfs si no conoces las rutas") tied to a clear condition, plus path-resolution context for how to supply inputs. There is no explicit when-not-to-use guidance or note about what to do if the output file already exists.

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