Skip to main content
Glama

FreeDailyPro PDF Tools

pdf_watermark

Read-onlyIdempotent

Add a text watermark to a PDF

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

Input Schema

NameRequiredDescriptionDefault
textYesWatermark text, for example CONFIDENTIAL.
colorNoText colour, 6-digit hex. Default 808080
layerNoabove (default) draws over the page; behind draws under the page's own content so text stays dark (a full-page scan or solid background hides it)
opacityNo0.05 to 1. Default 0.4
fontSizeNoPoints, 6 to 400. Default: sized automatically to fill the page
positionNoPosition: one of center, top-left, top-right, bottom-left, bottom-right, tiled.
fileBase64YesThe input file as a base64 string, without a data: prefix.
rotationDegreesNoDegrees, default 45 (0 is horizontal)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
    • addedInput schema / properties / position / description
      Added value: +"Position: one of center, top-left, top-right, bottom-left, bottom-right, tiled."
    • addedInput schema / properties / text / description
      Added value: +"Watermark text, for example CONFIDENTIAL."
  2. Changed1 schema field changed
    • addedInput schema / properties / layer
      Added value: +{
      +  "description": "above (default) draws over the page; behind draws under the page's own content so text stays dark (a full-page scan or solid background hides it)",
      +  "enum": [
      +    "above",
      +    "behind"
      +  ],
      +  "type": "string"
      +}
  3. Changed9 schema fields changed
    • addedInput schema / properties / color
      Added value: +{
      +  "description": "Text colour, 6-digit hex. Default 808080",
      +  "pattern": "^#?[0-9a-fA-F]{6}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / fontSize / description
      Added value: +"Points, 6 to 400. Default: sized automatically to fill the page"
    • addedInput schema / properties / fontSize / maximum
      Added value: +400
    • addedInput schema / properties / fontSize / minimum
      Added value: +6
    • addedInput schema / properties / opacity / description
      Added value: +"0.05 to 1. Default 0.4"
    • changedInput schema / properties / opacity / minimum
      Previous value: -0New value: +0.05
    • addedInput schema / properties / rotationDegrees / description
      Added value: +"Degrees, default 45 (0 is horizontal)"
    • addedInput schema / properties / rotationDegrees / maximum
      Added value: +360
    • addedInput schema / properties / rotationDegrees / minimum
      Added value: +-360
  4. First observed

TDQS

C2.9/5.0
Behavior2/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds nothing beyond that: it does not say whether a new PDF is produced or the original is replaced, what the return value looks like, or any limits such as file size.

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?

It is a single front-loaded sentence with no wasted wording. It is terse but not padded, so the only criticism is that the brevity leaves gaps rather than that it wastes space.

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?

This is an 8-parameter file-transformation tool with no output schema, yet the description says nothing about the returned artifact (base64 PDF, new file, download link). For a transformation tool, the output contract is the main thing an agent must know before calling it.

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 field descriptions are thorough (default opacity 0.4, layer semantics, auto fontSize, tiled position). The description adds no parameter meaning of its own, 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?

The description names a concrete verb and resource ('Add a text watermark to a PDF'), which clearly separates it from pdf_compress, pdf_merge and similar siblings. It does not explicitly contrast with image_watermark or pptx_watermark, but the resource is unambiguous.

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?

The description gives no explicit when-to-use guidance, no prerequisites, and no mention of alternatives such as image_watermark or pptx_watermark. Usage is only inferable from the tool name and the one-sentence purpose.

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