Skip to main content
Glama
pdf4me
by pdf4me

Merge PDF Overlay

merge_pdf_overlay

Overlay one PDF onto another to create a combined layered document. Provide base and overlay PDF file paths and optionally configure output name and destination.

Instructions

Overlay one PDF over another via PDF4me /api/v2/MergeOverlay. Inputs: base_pdf_file_path and overlay_pdf_file_path; optional output naming and async mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_dirNo
output_doc_nameNomerged_overlay.pdf
output_file_nameNo
base_pdf_file_pathYes
overlay_pdf_file_pathYes
Behavior2/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 of behavioral disclosure. It mentions the API endpoint and async mode, but fails to state side effects (e.g., whether inputs are modified), permissions required, return format, or error behavior. These are significant gaps for a tool that creates a new PDF.

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?

The description is concise, with two sentences that deliver the core operation and key inputs. However, the second sentence is a compressed list that includes the unclarified 'async mode', which slightly impairs clarity. Overall, it is efficient with no redundant wording.

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

Completeness2/5

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

Given the medium complexity (5 parameters, no output schema, no annotations), the description is incomplete. It fails to explain the output of the operation, the meaning of the output parameters, or the implications of async mode. It would benefit from clarifying the result and differences from sibling merge tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, so the description must compensate. It names base_pdf_file_path and overlay_pdf_file_path, but only vaguely refers to 'optional output naming' without distinguishing output_dir, output_doc_name, or output_file_name. Additionally, it mentions 'async mode' which is not present in the schema, creating ambiguity.

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?

The description clearly states the tool's purpose with a specific verb ('Overlay') and resource ('one PDF over another'), which differentiates it from similar tools like merge_multiple_pdfs. It also names the underlying API endpoint, including the specific operation path, adding precision.

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 description implies usage for overlaying PDFs, but it does not explicitly state when to use this tool versus alternatives, nor does it provide prerequisites or exclusions. The context is clear but lacks direct guidance on choosing this over sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdf4me/pdf4me-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server