Skip to main content
Glama

merge_pdfs

Read-onlyIdempotent

Combine multiple PDFs into a single document by providing ordered URLs or base64 files, ideal for re-assembling split reports or building one attachment from several exports.

Instructions

Merge multiple PDFs, in the given order, into a single PDF document. Accepts either public URLs or base64-encoded files (exactly one of the two). Returns the merged file as base64 (up to 10 MB) plus per-input page counts. Useful for re-assembling split reports, combining invoices or building one attachment from several exports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlsNoOrdered list of 2-10 public http(s) PDF URLs to merge into one document. Leave empty when using files_base64.
files_base64NoOrdered list of base64-encoded PDFs to merge (e.g. parts produced by split_pdf). Leave empty when using urls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior. The description adds useful behavioral detail beyond that: it accepts exactly one of two input modes, returns base64 output capped at 10 MB, and reports per-input page counts.

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?

The description is three sentences with no filler. The primary purpose is front-loaded, followed by input constraints and return behavior, and each sentence adds distinct value.

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?

Given the tool's low complexity, complete schema descriptions, and strong annotations, the description covers the key operational details an agent needs: input modes, output format/size, ordering, and page-count reporting. No essential information is missing.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents both parameters with 100% coverage, so the baseline is 3. The description adds meaning beyond the schema by stating that exactly one of urls/files_base64 must be provided and by explaining the per-input page counts in the return value.

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?

The description opens with a specific verb and resource: 'Merge multiple PDFs, in the given order, into a single PDF document.' This clearly identifies the operation and differentiates it from siblings like split_pdf, convert_pdf_to_markdown, and extract_pdf_tables.

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?

The description gives concrete usage contexts: 're-assembling split reports, combining invoices or building one attachment from several exports.' This is clear contextual guidance, though it does not explicitly name alternatives or state when not to use the tool.

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