Skip to main content
Glama

PDF Watermark API - stamp text (DRAFT, CONFIDENTIAL) on pages

pdf_watermark
Read-onlyIdempotent

Put a diagonal or flat text watermark on all or chosen pages of a PDF, with size and opacity. Unicode text works. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/pdf-watermark.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "DRAFT",
      "fileName": "sample.pdf",
      "fileContent": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovUHJvZHVjZXIgKHB5cGRmKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDEKL0tpZHMgWyA0IDAgUiBdCj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAyIDAgUgo+PgplbmRvYmoKNCAwIG9iago8PAovVHlwZSAvUGFnZQovUmVzb3VyY2VzIDw8Cj4+Ci9NZWRpYUJveCBbIDAuMCAwLjAgNTk1IDg0MiBdCi9QYXJlbnQgMiAwIFIKPj4KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwMDU0IDAwMDAwIG4gCjAwMDAwMDAxMTMgMDAwMDAgbiAKMDAwMDAwMDE2MiAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDUKL1Jvb3QgMyAwIFIKL0luZm8gMSAwIFIKPj4Kc3RhcnR4cmVmCjI1NgolJUVPRgo="
    },
    "name": "pdf_watermark"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNol, m or sm
textYesWatermark text, e.g. CONFIDENTIAL
filesNoOr several files: [{fileName, fileContent (base64)}]
pagesNoPages, e.g. 1-3, 5, 8- (empty = all pages)
opacityNoStrength in percent: 20, 35 or 5535
fileNameNoFile name with extension, e.g. report.pdf
directionNodiag or flatdiag
fileContentNoThe file as base64 (a data: URI is fine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, it discloses meaningful operational traits: server-side execution, files deleted immediately with nothing stored, Unicode support, and rate/quota limits with auth mechanisms. The notable gap is the return value — it never says whether the call returns a base64 PDF, a URL, or a modified file, which matters for an 8-parameter tool with no output schema.

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?

The capability is front-loaded in the first sentence, followed by behavioral and access details. The pricing URLs and euro/dollar figures are somewhat cluttered but are load-bearing for an agent deciding whether a call will succeed without an API key.

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?

Privacy, quota, auth, and Unicode coverage are all present, which is substantial for a 8-parameter tool. However, with no output schema the description should explain what comes back (base64 payload vs link) and any page-range validation constraints, and it does not.

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 the schema already documents every parameter including enums for size, opacity, and direction. The description only echoes those concepts ('all or chosen pages', 'size and opacity') and adds one useful note that Unicode text works for the text parameter; the baseline 3 applies.

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?

States a specific verb and resource — 'Put a diagonal or flat text watermark on all or chosen pages of a PDF' — plus the configurable surface (size, opacity). The word 'PDF' cleanly separates it from the sibling image_watermark and an agent can decide applicability without opening the schema.

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?

It gives access guidance (free tier of 5 calls/day, paid via Radar API key or x402) but says nothing about when to choose this over alternatives, or about prerequisites such as whether the PDF must be unencrypted or page-limited. Usage is implied by the description rather than explicitly framed.

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