Skip to main content
Glama

Add Watermark & Page Numbers to PDF

pdf_watermark

Stamp PDFs with diagonal text watermarks and optional bottom-right page numbers on all or selected pages, processing files locally without uploads.

Instructions

Stamp a diagonal text watermark (e.g. CONFIDENTIAL, DRAFT) and/or bottom-right page numbers onto all or selected pages of a local PDF completely offline.

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": {
      "inputPath": "<inputPath>"
    },
    "name": "pdf_watermark"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoWatermark text to stamp diagonally across pages (e.g. "CONFIDENTIAL")
pagesNoPages to stamp, e.g. "1-3,5" or "all"all
opacityNo
fontSizeNo
inputPathYesLocal PDF file path
outputPathNo
angleDegreesNo
addPageNumbersNoAlso stamp page numbers ("1 / N") in the bottom-right footer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose two useful traits: processing is "completely offline" and scope is "all or selected pages." But for a file-mutating tool it omits critical behavior: whether the input PDF is modified in place or only written to outputPath, what happens when outputPath is omitted, whether page numbers alone are valid without watermark text, and what is returned on success.

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?

A single front-loaded sentence with no filler; "completely offline" and "and/or" both earn their place. It is dense rather than scannable, packing operation, scope, and constraint into one clause, but nothing is wasted.

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?

For an 8-parameter, annotation-free, no-output-schema tool, the description covers the core operation and page scope but leaves the output contract undefined — no statement of return value or where the stamped file lands. Given that outputPath has no schema description and is not required, an agent could not confidently predict the result of a call.

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?

With 50% schema coverage, the description compensates for half the gaps: it clarifies that text is stamped "diagonally" (angles the angleDegrees meaning), that pages can be all or a selection, and that addPageNumbers produces a bottom-right footer. It says nothing about opacity, fontSize, or outputPath — the last being a real ambiguity for a write operation, where the schema description is blank.

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 concrete verb ("Stamp") plus the two resources it applies (diagonal text watermark and bottom-right page numbers) and the target ("a local PDF"). The "local PDF ... completely offline" framing distinguishes it from the image-oriented sibling image_watermark, though it never names that alternative explicitly.

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?

"and/or" implies you may use text alone, page numbers alone, or both, and "all or selected pages" implies the filtering case, so usage is inferable. There is no explicit when-to-use/when-not statement, no mention of prerequisites (does the file need to exist locally?), and no routing to alternatives such as image_watermark for non-PDF inputs.

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