Skip to main content
Glama

unmake file tools

Add a text watermark to a PDF

pdf_watermark
Read-onlyIdempotent

Add a text watermark to a PDF. Writes a sentence (CONFIDENTIAL, DRAFT, a name) on chosen pages as real text: middle, tiled, top or bottom; size relative to each page, angle as seen (right on rotated and mixed-size pages), strength, colour. Same code as the watermark page. Use when: An agent must mark copies of a PDF before sending them. Not for: Picture/logo watermarks; PDFs that need a password to open. File types: pdf. Max 30 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pdf_watermark"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds operational constraints the annotations cannot convey: 30 MB cap, pdf-only input, rejection of password-protected files, and the fact that the output is selectable real text rather than a raster stamp. It does not say what the call returns (new file reference? job id?), and the phrase "Writes ... on chosen pages" sits slightly at odds with readOnlyHint=true, since it is unstated whether the source PDF is mutated or a copy is produced.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the use/not-for routing are front-loaded, which is good, but the middle section is a clipped option dump ("middle, tiled, top or bottom; size relative to each page, angle as seen ... strength, colour") that reads as marketing copy rather than actionable guidance. "Same code as the watermark page" is filler that gives the agent nothing it can act on.

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 a four-parameter file-transformation tool with a nested options object and no output schema, the description covers inputs and limits well but never says what comes back or how the result is retrieved. Combined with the sibling `get_job`, this suggests an async pattern the agent must guess at rather than read.

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% and the four parameters (options, file_url, filename, file_base64) are self-documented, so the baseline of 3 applies. The description adds only indirect hints — "File types: pdf" constrains filename and "Max 30 MB" constrains the payload — while the nested `options` object, which actually carries placement/angle/size/colour/strength, is left entirely to the schema.

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?

"Add a text watermark to a PDF" states a specific verb and resource, and the follow-up sentence pins down what the mark is (a real text string like CONFIDENTIAL/DRAFT/a name) and where it goes. This clearly separates it from siblings such as pdf_fill, pdf_sign or doc_pii_redact, which operate on form fields, signatures and redaction rather than visible overlay text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The "Use when" line gives a concrete trigger (marking copies before sending) and the "Not for" line excludes image/logo watermarks and password-protected PDFs, which is real exclusion guidance. It stops short of a 5 because no alternative tool is named for those excluded cases, so the agent knows what not to use this for but not where to go instead.

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