Skip to main content
Glama

Merge PDFs

merge_pdfs

Joins two or more PDFs into one, in the order given. Returns a link to the merged PDF. Always pass the person's own file exactly as they gave it. If you cannot pass it, call get_upload_link or ask for an https link to it. Never create, rewrite, summarise or rebuild a document to stand in for theirs.

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 files, in order: at least 2. One upload link can stand for several of them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / files / description
      Previous value: -"The files, in order: at least 2."New value: +"The files, in order: at least 2. One upload link can stand for several of them."
    • changedInput schema / properties / files / minItems
      Previous value: -2New value: +1
  2. Changed2 schema fields changed
    • changedInput schema / properties / files / description
      Previous value: -"The files, in order."New value: +"The files, in order: at least 2."
    • changedInput schema / properties / files / minItems
      Previous value: -1New value: +2
  3. Changed2 schema fields changed
    • changedInput schema / properties / files / items / description
      Previous value: -"One file: file_id, url or base64."New value: +"One file: file_id, url or base64. Always pass the person's own file exactly as they gave it. If you cannot pass it, call get_upload_link or ask for an https link to it. Never create, rewrite, summarise or rebuild a document to stand in for theirs."
    • changedInput schema / properties / files / items / properties / file_id / description
      Previous value: -"A file id from an earlier upload, or the id of a file attached in the chat."New value: +"A file id from an earlier upload, the upload_id from get_upload_link once the person says it is done, or the id of a file attached in the chat."
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, so the description need not re-establish safety, and it instead adds the return shape (a link to the merged PDF) absent from any output schema. It also discloses the file-provenance rule and the substitution prohibition, which are real behavioral constraints beyond the annotations. Rate limits and file-size ceilings are left to the schema.

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?

Four short sentences with the core action front-loaded and the provenance policy following. The provenance rule is repeated verbatim in the schema's item description, which is mild redundancy, but nothing in the description is 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?

A single-parameter tool with full schema coverage and no output schema; the description supplies the missing return-value statement it is obligated to provide. What remains unsaid (size ceilings, ordering errors, link expiry) is either in the schema or minor for a 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% and every field, including file_id/url/base64/download_url, is documented in the schema itself. The description reinforces the ordering ('in the order given') and restates the provenance rule, but adds little that the schema does not already say. 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?

States a specific verb and resource ('Joins two or more PDFs into one') plus the ordering constraint and the return value ('a link to the merged PDF'). An agent can distinguish it from siblings like split_pdf or organize_pages from the verb alone, though no sibling is named explicitly.

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 a clear conditional route: if the caller cannot pass the person's own file, call get_upload_link or ask for an https link. It also forbids the tempting alternative of fabricating a substitute document. It stops short of naming seams against other PDF-manipulation siblings, but the when-to-use path is explicit.

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