Skip to main content
Glama
mlorentedev

pdf-modifier-mcp

batch_modify_pdf_content

Apply the same text replacements to multiple PDF files at once. Each file is processed independently, and outputs are saved to a specified directory.

Instructions

Apply the same text replacements to multiple PDF files at once.

Each file is processed independently -- a failure in one file does not stop the rest of the batch. Output files are written to output_dir using the same filename as the input.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_pathsYesList of absolute paths to input PDF files.
output_dirYesDirectory where modified PDFs will be saved.
replacementsYesDictionary mapping old text to new text.
use_regexNoIf true, treat keys as regex patterns.
passwordNoOptional password if PDFs are encrypted.
max_file_sizeNoMaximum allowed input file size in bytes (default: 100 MB).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Without annotations, the description discloses key behaviors: independent file processing, failure tolerance, and output naming. It does not cover all edge cases but adds useful context beyond the input 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?

The description is extremely concise with three sentences, front-loading the purpose and adding necessary behavioral details without any fluff.

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 presence of an output schema, the description covers core functionality and output behavior. It lacks details on error handling and prerequisites but is adequate for a batch tool.

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%, providing baseline. The description adds value by specifying that output files keep the same filename as input, which is not in the schema, thus improving parameter understanding.

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: 'Apply the same text replacements to multiple PDF files at once.' It uses a specific verb and resource, and the name 'batch' distinguishes it from the sibling 'modify_pdf_content'.

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?

The description mentions that each file is processed independently, implying batch use, but does not explicitly specify when to use this tool versus alternatives like 'modify_pdf_content' or when not to use it.

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/mlorentedev/pdf-modifier-mcp'

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