Skip to main content
Glama

pdf_merge

Merge multiple PDF files (in order) into one PDF. Returns base64 of the merged PDF.

Input Schema

NameRequiredDescriptionDefault
filesYesPDF file contents as base64, in merge order (2+ files)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose two valuable behaviors: page order follows input order, and the result is returned as base64 rather than written to storage. It says nothing about size limits, encrypted/corrupt input handling, or failure behavior, which is a meaningful gap for a file-processing tool with zero annotation coverage.

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, zero waste, with the core operation stated first and the return contract second. Nothing to trim.

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?

For a one-parameter tool, the description covers the operation, ordering, minimum input count, and the return shape (base64), so no output schema is needed. It is slightly incomplete on error/edge-case behavior, but an agent has enough to call it correctly.

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 says "PDF file contents as base64, in merge order (2+ files)". The description's "in order" merely restates that, adding no syntax, sizing, or format detail beyond the schema. Baseline 3 is appropriate.

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?

Specific verb+resource ("Merge multiple PDF files into one PDF") with two useful qualifiers: order is preserved and the output is returned as base64. It is clearly distinct from siblings like pdf_split or pdf_rotate, but it never names or contrasts a sibling explicitly, so it stops short of a 5.

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?

Usage is implied by the operation itself (combine 2+ PDFs into one), and "in order" hints at the merge-order contract. But there is no guidance on when to prefer this over pdf_split or pdf_text, no preconditions (e.g. all inputs must be valid, unencrypted PDFs), and no mention of limits.

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.