Skip to main content
Glama

pdf_add_watermark

Idempotent

Add text watermarks to PDF documents with customizable placement, opacity, and rotation to protect content or mark documents as drafts.

Instructions

Add a text watermark to PDF pages. Watermark is centered and rotated diagonally by default. Applies to all pages if no page range is specified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute path to the source PDF file
textYesWatermark text to overlay on pages
outputPathYesAbsolute path for the watermarked output PDF
pagesNoPage range, e.g. '1-5' or '1,3,5'. Omit to watermark all pages.
opacityNoWatermark opacity (0.0–1.0). Defaults to 0.3.
fontSizeNoWatermark font size (10–200). Defaults to 50.
colorNoWatermark color. Defaults to gray.
rotationNoWatermark rotation in degrees (0–360). Defaults to 45 (diagonal).
Behavior4/5

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

While annotations cover safety (destructiveHint: false, idempotentHint: true), the description adds valuable behavioral context not found elsewhere: the watermark is 'centered' and visually 'rotated diagonally' (explaining the 45-degree default), and clarifies the default page scope. It does not contradict annotations.

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?

Three sentences efficiently structured: purpose statement first, followed by visual layout defaults, then scope defaults. Every sentence conveys information not replicated in the structured fields, with no redundant or wasted words.

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?

Given the rich schema (8 parameters, 100% coverage) and clear annotations, the description provides appropriate context for defaults and visual appearance. It could explicitly mention that the source file remains unmodified (implied by outputPath requirement and destructiveHint), but is otherwise complete for the tool's complexity.

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

Parameters4/5

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

With 100% schema coverage, the baseline is 3. The description adds semantic value beyond the schema by explaining that diagonal rotation means 45 degrees and explicitly stating that omission of the page range results in all pages being watermarked. It also notes the watermark is 'centered,' which is not documented in any parameter description.

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 opens with a clear specific verb ('Add') and resource ('text watermark to PDF pages'), immediately distinguishing it from sibling tools like pdf_add_page_numbers or pdf_encrypt. It precisely defines the tool's scope.

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 patterns by explaining default behaviors (applies to all pages if no range specified, diagonal rotation), but lacks explicit guidance on when to use this versus alternatives like pdf_embed_image or prerequisites for the operation.

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/AryanBV/pdf-toolkit-mcp'

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