Skip to main content
Glama

pdf_merge

Read-onlyIdempotent

Merge multiple PDFs into one

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": {
      "filesBase64": "<filesBase64>"
    },
    "name": "pdf_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesBase64YesThe PDF files, base64-encoded, in the order they should be merged

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is structured. The description adds nothing beyond that — it does not say that at least two files are required, that output ordering follows input order, or what the caller receives back (a merged base64 blob).

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?

A single five-word sentence with the verb and resource front-loaded and zero filler. Nothing is padded or repeated.

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?

The tool itself is simple and its only parameter is well documented, so the definition is close to sufficient. However, with no output schema the description could reasonably note what a caller gets back and that two or more inputs are mandatory, both of which currently require reading the schema.

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 is fully documented in the schema, including the ordering guarantee and the base64 encoding, so the description is not required to compensate. It adds no meaning beyond the schema, which is acceptable at this coverage level but not value-adding.

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 states a specific verb and resource ('Merge multiple PDFs into one') with unambiguous scope. It is clearly distinguishable from sibling tools like pdf_split, pdf_organize, and audio_merge/video_merge/pptx_merge by the PDF-plus-merge combination, though it never names how it differs from them explicitly.

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, no statement of prerequisites, and no pointer to alternatives such as pdf_organize or pdf_split for reordering or dividing documents. An agent only learns what the tool does, not the conditions that select it over siblings.

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