Skip to main content
Glama

process_pdf_post_conversion

Finalize PDFs generated by playwright-mcp by moving files, adding watermarks and QR codes, and cleaning temporary files.

Instructions

🔧 PDF Post-Processing Unified Tool - ⚠️ IMPORTANT: This is a necessary follow-up step for playwright-mcp's browser_pdf_save command! After using playwright-mcp to generate PDF, this tool must be called immediately to complete final processing. Features include: 1) Automatically move PDF from playwright temporary path to target location 2) Uniformly add watermarks and QR codes 3) Clean up temporary files. Workflow: playwright-mcp:browser_pdf_save → doc-ops-mcp:process_pdf_post_conversion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
playwrightPdfPathYesPDF file path generated by playwright-mcp (usually in temporary directory)
targetPathNoTarget PDF file path (optional, will be auto-generated if not provided). If not absolute path, will be resolved relative to OUTPUT_DIR environment variable
addWatermarkNoWhether to add watermark (will be automatically added if WATERMARK_IMAGE environment variable is set)
addQrCodeNoWhether to add QR code (will be automatically added if QR_CODE_IMAGE environment variable is set)
watermarkImageNoWatermark image path (overrides environment variable)
watermarkTextNoWatermark text content
watermarkImageScaleNoWatermark image scale ratio
watermarkImageOpacityNoWatermark image opacity
watermarkImagePositionNoWatermark image positionfullscreen
qrCodePathNoQR code image path (overrides environment variable)
qrScaleNoQR code scale ratio
qrOpacityNoQR code opacity
qrPositionNoQR code positionbottom-center
customTextNoCustom text below QR codeScan QR code for more information
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the tool's workflow dependencies, mandatory sequencing, and three core behaviors (move, add features, clean up). However, it doesn't mention potential side effects like file overwriting, permission requirements, or error handling for missing environment variables.

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 description is appropriately sized and front-loaded with the most critical information (workflow dependency). However, the emoji usage and formatting (🔧, ⚠️) add visual noise without semantic value, and the numbered feature list could be more concise. Every sentence earns its place by conveying essential workflow information.

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 the tool's complexity (14 parameters, no annotations, no output schema), the description provides good contextual completeness by explaining the mandatory workflow sequence and core operations. However, it doesn't describe the return value or error conditions, which would be helpful given the absence of an output schema and annotations.

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 baseline is 3. The description doesn't add meaningful parameter semantics beyond what's already documented in the schema - it mentions watermarks and QR codes generally but provides no additional details about parameter interactions, defaults, or environment variable precedence that aren't already in the schema descriptions.

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 clearly states the tool's purpose as a 'necessary follow-up step' that performs three specific functions: moving PDFs, adding watermarks/QR codes, and cleaning temporary files. It explicitly distinguishes this from sibling tools by mentioning it's specifically for post-processing PDFs generated by playwright-mcp, unlike general conversion or watermarking tools in the sibling list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidance: it must be called 'immediately' after playwright-mcp's browser_pdf_save command, creating a clear workflow dependency. It also distinguishes when to use this tool versus alternatives by positioning it as a required follow-up to a specific playwright-mcp command, not as a standalone watermarking or QR code tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tele-AI/doc-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server