Skip to main content
Glama

PDF Efforts

Merge PDFs

merge_pdfs
Idempotent

Combine 2 to 20 PDF files into one PDF, in the order given. Pages are copied without re-compression.

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
filesYesThe PDFs to merge, in order.

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=true, so the safety profile is supplied. The description adds genuine value by disclosing that pages are copied without re-compression (output fidelity) and that ordering is preserved, but says nothing about size limits, failure behavior on a bad URL, or how results are retained.

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?

Two short sentences, front-loaded with the operation and its cardinality, with no filler. Every clause (range, ordering, no re-compression) carries information an agent would otherwise have to guess.

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?

With an output schema, full annotation coverage and a fully described input schema, the description plus structured data are nearly sufficient to call the tool correctly. The remaining gap is operational behavior on partial failures or oversized inputs, which is a minor omission for a simple merge operation.

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%: the files array documents the url/base64/file_id alternatives, the 60-minute file_id lifetime, filename usage, and minItems/maxItems. The description's "in the order given" reinforces that array order controls output order, which is a modest addition over the schema, so the baseline 3 applies.

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 ("Combine ... PDF files into one PDF") and adds concrete constraints: 2 to 20 inputs and output order follow input order. It is clear enough to distinguish from siblings like split_pdf or extract_pages, though it never explicitly contrasts with adjacent tools such as images_to_pdf.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no alternatives named. An agent must infer on its own that images_to_pdf or office_to_pdf should be used for non-PDF inputs and split_pdf for the reverse operation; the description only states what the tool does.

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