Skip to main content
Glama
marc-hanheide

PDF Redaction MCP Server

redact_by_coordinates

Redact specific areas of a loaded PDF by providing page number and bounding box coordinates. Customize fill color and overlay text, then save the in-memory changes to disk.

Instructions

Redact specific areas of a loaded PDF document by coordinates.

The document must be loaded first using load_pdf. Modifications are made in-memory. Use save_pdf to write the changes to disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fill_colorNoRGB color for redaction box (0-1 range). Default is black (0,0,0)
redactionsYesList of redaction areas, each with: - page: Page number (0-indexed) - bbox: Bounding box as [x0, y0, x1, y1] - text: Optional overlay text for this specific redaction
document_idYesIdentifier of the loaded document
overlay_textNoDefault text to display over redacted areas (can be overridden per redaction)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description must disclose behavioral traits. It does mention in-memory modification and the need to save, which is useful, but omits the irreversible nature of redaction once saved and does not specify coordinate system semantics or side effects beyond persistence. This is a moderate disclosure level.

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 three sentences: a clear purpose statement followed by two essential workflow constraints. Every sentence adds value, no filler or redundant content.

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 required prerequisites and persistence workflow (load first, in-memory, save to disk). The presence of an output schema means return values need not be explained. It lacks details about coordinate system semantics, but overall it provides enough context for correct invocation in a multi-step PDF workflow.

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?

The schema already provides 100% description coverage for all parameters, including detailed descriptions for redactions, fill_color, and overlay_text. The tool description adds little beyond the phrase 'by coordinates' and does not clarify coordinate origin or units, but the baseline of 3 is appropriate because the schema carries the semantic load.

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 explicitly states the tool redacts specific areas of a loaded PDF by coordinates, which is a distinct verb+resource+method combination. It also differentiates from sibling redaction tools that target text or images by naming the coordinate-based approach.

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 description gives clear prerequisites and workflow: the document must be loaded first, modifications are in-memory, and save_pdf is required to persist changes. It does not explicitly name alternatives like redact_text_by_search or redact_images_in_pdf, but the coordinate-based scope is implied.

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/marc-hanheide/pdf-redaction-mcp'

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