Skip to main content
Glama

Stamp text on a PDF

pdf_stamp

Stamp PDF pages with PAID, DRAFT, or custom text in a chosen color, position, and opacity; writes a new file and leaves the original untouched.

Instructions

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
pathYesThe source PDF
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_pathYesWhere to write the stamped PDF
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 observedv0.20.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the agent knows it writes without destroying. The description adds valuable context beyond annotations: it writes a new file, leaves the input untouched, and restricts free-tier use to the PAID and DRAFT presets in preset colours. This is strong transparency, though it omits overwrite and output details covered in the schema.

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 short sentences, front-loaded with the core action and followed by write behavior and tier limits. Every sentence earns its place; no filler.

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?

The description covers the core action, the write-to-new-file behavior, input preservation, and free-tier limits, which is sufficient given 100% schema coverage for parameters. It does not explain the output/return or overwrite edge case, but with no output schema and overwrite documented in the schema, these are minor gaps.

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 defines all nine parameters, including text presets, colour, pages, opacity, position, font size, and overwrite. The description adds only a general reference to 'colour and position you choose' and repeats the free-tier preset constraint for text/colour, which is already in the schema. Baseline 3 is appropriate because the schema does the heavy lifting.

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 states a specific verb ('draw a word such as PAID or DRAFT across the pages') and resource (PDF pages), with concrete examples of the stamped text. It is clear what the tool does, though it does not explicitly distinguish itself from the sibling pdf_watermark_business, so sibling differentiation is missing.

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 only says 'Call this tool to draw a word...' but gives no when-to-use conditions, no when-not-to-use, and no alternatives (e.g., pdf_watermark_business). Usage is implied by the purpose, but explicit guidance is absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools