Skip to main content
Glama

Merge PDF files

merge_pdf
Read-onlyIdempotent

Combine PDF files. Each file is base64 or a public URL, and can keep a page range such as 1-3,5. Private addresses are refused. Returns one PDF as base64.

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_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes

Output Schema

NameRequiredDescriptionDefault
dataYesMerged PDF as base64.
bytesYes
pageCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Goes beyond the readOnly/openWorld/idempotent annotations by disclosing the SSRF guard ('Private addresses are refused'), the accepted input encodings, and the return format (one PDF as base64). It omits per-file size caps and file-count limits, but adds meaningful behavioral context.

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, front-loaded with the core action, then inputs, then the security constraint, then the output. Nearly every sentence earns its place, with only slight terseness around input naming.

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?

An output schema exists, so return-value documentation is optional, yet the description still states the base64 PDF result. For a single-array-parameter tool it covers the essential inputs and the key safety constraint, missing only the size/count limits that the schema already encodes.

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 description coverage is reported as 0%, so the description must carry the meaning; it explains the url/data duality and the page-range syntax ('1-3,5') that map to nested fields. It says nothing about name, filename, or mimeType, nor the 2-25 file bounds, leaving gaps.

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 ('Combine PDF files'), which clearly separates it from siblings like split_pdf or compress_pdf by implication. It does not name an alternative explicitly, so it stops short of full sibling differentiation.

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 verb 'Combine' and by the note that pages can be kept as ranges, but there is no explicit when-to-use/when-not guidance, no mention of split_pdf or images_to_pdf as alternatives, and no prerequisites beyond the private-address refusal.

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.