Skip to main content
Glama

Add watermark to PDF

watermark_pdf
Idempotent

Stamp a diagonal text watermark on every page of a PDF. Files are processed on HuntPDF servers and deleted automatically; the download link is temporary.

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": {
      "text": "<text>"
    },
    "name": "watermark_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesWatermark text, e.g. CONFIDENTIAL
opacityNo0.1-1, default 0.3
file_urlNoPublic https:// link to the file (preferred, up to 150 MB). Must be directly downloadable.
filenameNoOriginal file name, e.g. report.pdf
font_sizeNo20-200, default 60
file_base64NoThe file content as base64 (only for small files, max 10 MB). Use instead of file_url.

Output Schema

NameRequiredDescriptionDefault
pagesNo
file_nameYes
download_urlYesLink to download the result
expires_in_minutesYesThe link stops working after this time (or 3 minutes after the first download)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, idempotent, non-destructive, open-world operation, so the safety profile is largely covered. The description adds genuinely useful context beyond that – server-side processing on HuntPDF servers, automatic file deletion, and a temporary download link – which tells the agent about data retention and output delivery. It stops short of noting limits such as the 150 MB URL cap or what happens on repeated calls, leaving the transparency modest rather than rich.

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?

Two sentences, zero waste, with the primary action stated first and the operational caveats second. Nothing in the text restates the title or the schema.

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?

For a single-shot mutation tool with a full output schema and 100% parameter documentation, the description covers what the tool does, where processing occurs, and the lifetime of the result link. It could have added the fixed diagonal/full-page placement as a hard constraint or mentioned limits on repeated invocations, but nothing essential is missing for correct invocation.

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 description coverage is 100%, so every parameter (text, opacity, file_url, filename, font_size, file_base64) is already documented in the schema. The description adds no parameter-level meaning such as default opacity, size limits, or the file_url-vs-file_base64 tradeoff, so the baseline 3 applies.

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?

"Stamp a diagonal text watermark on every page of a PDF" gives a precise verb (stamp), resource (PDF pages), and scope (every page, diagonal). The purpose is unambiguous and no sibling in the list performs watermarking, though the description never explicitly differentiates itself from the other PDF-manipulation tools.

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/when-not guidance, no prerequisites, and no mention of alternatives. The description does not state what to do instead when a PDF requires non-diagonal or image watermarks, nor does it route between the file_url and file_base64 input paths that the schema exposes.

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