Skip to main content
Glama

Merge PDFs

merge_pdfs

Merge two or more PDF files into a single PDF, in the order given. Input: a list of base64-encoded PDF file contents (each max 25 MB / 500 pages). Returns a download_url for the merged PDF (link valid 24 hours), its size and page count. Costs 1 credit; 5 free calls per month.

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

Input Schema

NameRequiredDescriptionDefault
pdfs_base64YesThe PDF files to merge, each as a base64-encoded string, in the order they should appear in the output (at least 2; each max 25 MB / 500 pages).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / pdfs_base64 / description
      Added value: +"The PDF files to merge, each as a base64-encoded string, in the order they should appear in the output (at least 2; each max 25 MB / 500 pages)."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing input size/page caps, that a download_url is returned with 24-hour validity, that size and page count come back, and that each call costs 1 credit with 5 free calls per month. The annotations only cover safety/idempotency hints, so this description carries real operational value.

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 tight sentences organized as action, input, and output/cost — no filler, and the core purpose is front-loaded.

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

Completeness5/5

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

Even though an output schema exists, the description still summarizes the return payload and adds the credit/quota model, so an agent has everything needed to call it and anticipate cost and result shape.

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 coverage is 100% and the single parameter already documents base64 encoding, ordering, minimum of 2, and size/page limits; the description largely restates those constraints rather than adding new meaning. Baseline 3 is appropriate when the schema does the heavy lifting.

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 and resource ('Merge two or more PDF files into a single PDF') plus the ordering semantic, which makes it unambiguous against siblings like images_to_pdf or pdf_tables_to_excel.

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?

The 'two or more PDF files' phrasing and per-file limits imply when the tool applies, but there is no explicit guidance on when to choose it over sibling tools such as images_to_pdf, and no stated exclusions or prerequisites.

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.