Skip to main content
Glama

pdf-merger

Stamp text on a PDF

pdf_stamp

Call this tool to draw a word such as PAID or DRAFT across the pages, in a colour and position you choose. Writes a new file; input untouched. Free tier: the PAID and DRAFT presets in their preset colours.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesName of an uploaded PDF (pdf_upload), or one this server wrote earlier
textYesWhat to stamp. PAID and DRAFT are presets with their own colour; any other text is Pro
colorNoHex code such as #1b7f3b, or a name: red, green, blue, black, gray, orange, purple. Pro
pagesNoWhich pages to stamp, e.g. "1" or "2,4-6". Omit for every page
opacityNo0 to 1. Default 0.35 in the centre, 0.85 in a corner
out_pathYesName for the stamped PDF; it comes back as a download link valid for one hour
positionNoWhere on the page. Default center, which is drawn on the 45-degree diagonal like a real stamp
font_sizeNoPoint size. By default the stamp is sized to fit the page width
overwriteNoReplace out_path if it exists. Default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond annotations, it discloses that the input file is untouched, that the output is a download link valid for one hour, that the default center position is drawn on a 45-degree diagonal, and that free tier restricts colors to preset PAID/DRAFT. These are genuinely useful behavioral traits not captured by the annotations.

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?

Three sentences, zero waste. The core purpose and key constraints are front-loaded, and each sentence carries information without redundancy.

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?

Given 9 parameters, the schema fully documents them and the description adds the critical operational details (output link expiry, free-tier limits, default diagonal). It does not mention error handling or prerequisites, but with a full schema and no output schema, this is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds meaning for the 'text' parameter (preset behavior) and 'position' (diagonal default), enriching the parameter semantics slightly beyond the schema. It does not detail all params, but the schema already does that robustly.

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?

The description states a specific verb ('draw'/'stamp'), a resource (PDF pages), and concrete examples (PAID, DRAFT). It clearly distinguishes this from other pdf_* tools like pdf_merge or pdf_split by focusing on stamping text across pages.

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 purpose is unmistakable, and the free-tier limitation (PAID/DRAFT presets) gives a constraint on when certain values are usable. However, it does not explicitly contrast this with the sibling pdf_watermark_business or give a 'use this when...' vs alternatives, leaving some inference to the agent.

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.