Skip to main content
Glama

doc_tools_pdf_merge

Join PDFs into one in the order given, taking all pages or chosen ones from each. With a single file it reorders, repeats or drops pages. Price: $0.01 USDC via x402, charged only on success. Part of Document tools: Work with PDFs and scans: read the text out of a PDF with page numbers and metadata, recognize the text in a scan, photo or screenshot, merge PDFs, take or reorder pages, split into parts, and turn images into a PDF..

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": "doc_tools_pdf_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesPDFs in the order they should appear. The same file may be listed twice with different pages, which also reorders or drops pages of one document.
titleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose genuinely valuable extra context — the cost model ($0.01 USDC via x402, charged only on success) and the ordering/repetition semantics — but says nothing about what the result is (file, URL, base64), size limits, or failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The two operative sentences are front-loaded and efficient. The trailing 'Part of Document tools: Work with PDFs and scans: ...' catalog is boilerplate that inflates length without adding call-time value (and leaves a stray double period).

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

Completeness3/5

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

No output schema and no annotations, so the description must fully frame the call; it covers input selection and pricing well but omits the return shape and the meaning of `title`. Adequate for a merge tool, but not complete.

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 50%: the nested `files` items are well documented, but the top-level `title` parameter is undocumented in both schema and description, and the description never says what it is for. The description adds the semantic point that ordering is significant, but does not compensate for the undocumented parameter.

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 — join PDFs into one, in the given order, all pages or selected pages — and adds the non-obvious single-file mode (reorder/repeat/drop). An agent can distinguish this from doc_tools_pdf_split or doc_tools_images_to_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 Guidelines3/5

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

The single-file sentence does convey one useful when-to-use variant, and the appended catalog implies the family context. However, it never explicitly routes the agent among alternatives (split, images_to_pdf, pdf_text), so selection guidance is only implied.

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