Skip to main content
Glama

Merge PDFs into one

merge_pdfs
Read-onlyIdempotent

Join 2 to 20 PDFs into one, in the order given. Each entry is {file_id} (from POST /api/v1/files or an earlier result), {template_id} or {pdf_base64}. Optionally pick pages from each with pages, like "1-3,5". Returns a download link.

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

Input Schema

NameRequiredDescriptionDefault
filesYesPDFs to join, in order.
file_nameNoName for the returned file (default merged.pdf).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly=true, idempotent=true, destructive=false, so safety is covered. The description adds useful behavioral context beyond them: order is preserved, a 20-file ceiling, a 15 MB base64 limit, and that the result is a download link rather than an in-place mutation.

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?

Three compact sentences, front-loaded with the verb and scope, followed by input formats and the return value. Dense but every clause carries information; no filler.

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 2-parameter tool with full schema coverage and no output schema, the description supplies the essentials: limits, accepted input forms, page selection, ordering, and return shape. Minor gaps like error behavior on a failed member PDF are not addressed but are not critical for invocation.

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%, and the schema already documents pages syntax, file_id sourcing, pdf_base64 size cap and template_id origin. The description largely restates those fields, adding only the ordering constraint, so baseline 3 is appropriate.

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 ('Join'), the resource (PDFs), the scope (2 to 20, in the order given), and the return (a download link). An agent can immediately distinguish this from split_pdf or fill_pdf without opening the schema.

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?

Gives concrete input alternatives — file_id (from POST /api/v1/files or an earlier result), template_id, or pdf_base64 — and a selection preference ('Prefer file_id for big files'). It does not explicitly say when to pick merge_pdfs over splitting/filling siblings, but the operation is self-evidently distinct.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources