Skip to main content
Glama
pdf4me
by pdf4me

add_image_stamp_to_pdf

Add an image stamp or watermark to a PDF for branding or protection. Customize alignment, size, opacity, margins, and print behavior.

Instructions

Stamp or watermark a PDF with an image using PDF4me ImageStamp (/api/v2/ImageStamp). Provide pdf_file_path, image_file_path (PNG/JPG/etc.), alignX (Left/Center/Right), alignY (Top/Middle/Bottom). Optional: pages, size in MM or pixels, margins, opacity, is_background, show_only_in_print, output path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesNo
align_xYes
align_yYes
opacityNo
image_nameNo
output_dirNo
width_in_mmNo
width_in_pxNo
height_in_mmNo
height_in_pxNo
is_backgroundNo
pdf_file_pathYes
margin_x_in_mmNo
margin_x_in_pxNo
margin_y_in_mmNo
margin_y_in_pxNo
image_file_pathYes
output_file_nameNo
request_doc_nameNo
show_only_in_printNo
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. While it mentions optional behaviors like opacity, is_background, and show_only_in_print, it does not clarify whether the original PDF is modified or how the output path is used. This is a significant gap for a tool that modifies files.

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 a single sentence that efficiently packs essential information—purpose, required parameters, and optional categories. It is front-loaded with the primary action and remains concise despite covering many parameters.

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 tool's complexity (20 parameters, no output schema, no annotations), the description is incomplete. It does not explain the output format or file handling, and it omits several parameters. The description provides a useful overview but is not sufficient for safe and accurate invocation without additional information.

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?

The schema has 0% description coverage, so the description must compensate. It explains the purpose of key parameters (pdf_file_path, image_file_path, alignX, alignY) and summarizes optional groups (size, margins, opacity, etc.), but it omits several parameters (image_name, output_file_name, request_doc_name) and uses camelCase names that differ from the schema's snake_case, potentially causing confusion.

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 function: 'Stamp or watermark a PDF with an image' and specifies the API endpoint. It is distinct from sibling tools like add_text_stamp_to_pdf and add_image_watermark_to_image.

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 when to use the tool by listing required inputs and optional parameters, but it does not explicitly state alternatives or when not to use it. The context is present but not fully elaborated.

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