Skip to main content
Glama

PDF Efforts

Add text watermark

add_watermark
Idempotent

Stamp a text watermark (e.g. CONFIDENTIAL, DRAFT) on all or selected pages. Text must use Latin characters (Western European).

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

Input Schema

NameRequiredDescriptionDefault
fileYesThe PDF.
textYesWatermark text (Latin characters).
colorNoHex colour, e.g. "#d0312d".#d0312d
pagesNoPages to watermark: "all", or numbers and ranges such as "1-3, 5, 8-end" ("end" = last page).all
layoutNodiagonal center, center, tiled pattern, or bottom right.diagonal
opacityNoOpacity in percent.
font_sizeNo

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

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 destructiveHint=false and idempotentHint=true, so the agent knows this is a non-destructive, repeatable operation. The description adds the Latin-character limitation and page scoping, but never states that the result is a new file (source untouched), nor how the Latin-only rule is enforced if violated. With annotations carrying the safety profile, a 3 is appropriate.

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 short sentences, front-loaded with the operation and followed immediately by the hard constraint. No filler and nothing redundant with the title.

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?

An output schema exists and annotations cover the safety profile, and 6 of 7 parameters are described in the schema, so the description need not enumerate them. The one meaningful omission is that it never says the operation produces a new document rather than modifying the input in place.

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 coverage is 86%, so the schema already explains the file sources, pages syntax, layout enum, and opacity range; the description only echoes page selection and the Latin text constraint. It adds the illustrative watermark examples but nothing about font_size or how layout/opacity interact visually, so it stays at baseline.

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+resource ('Stamp a text watermark') with example content (CONFIDENTIAL, DRAFT) and the scope of the operation (all or selected pages). The resource is distinct enough from siblings like add_page_numbers that an agent can tell them apart, though the description never names a sibling to contrast with.

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 or when-not-to-use guidance and no mention of how this differs from adjacent tools such as add_page_numbers. The only usage constraint given is the Latin-character restriction on the watermark text, which is a limitation rather than selection guidance.

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