Skip to main content
Glama

PDF Redaction MCP

Server Details

MCP server for detecting and redacting PII (Personally Identifiable Information) in PDF documents.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
StabRise/pdf-redaction-api
GitHub Stars
3

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsA

Average 3.8/5 across 3 of 3 tools scored.

Server CoherenceA
Disambiguation5/5

Each tool serves a distinct purpose: anonymize_pdf redacts with predefined tags, anonymize_pdf_custom uses a custom prompt, and detect_pii_pdf only detects without redacting. No overlap.

Naming Consistency4/5

Two tools follow 'anonymize_pdf' pattern (one with '_custom'), while the third uses 'detect_pii_pdf'. The verb differs but naming is clear and predictable overall.

Tool Count5/5

Three tools cover the core operations of detection, standard redaction, and custom redaction. The count is well-scoped for a focused PDF redaction service.

Completeness4/5

The set covers detection and two redaction methods. A batch processing tool could be added, but for the stated purpose it is reasonably complete.

Available Tools

3 tools
anonymize_pdfBInspect

Anonymize a PDF by detecting and redacting PII (Personally Identifiable Information).

:param pdf: Base64-encoded PDF document to process. :param api_key: API key used to authenticate and meter usage. Generate one at https://pdf-redaction.com/apikeys/. :param tags: PII tags to detect and redact. If empty, all available tags are used. :param force_ocr: Force OCR processing even if text is extractable from the PDF. :param rotated_text: Enable detection and recognition of rotated text. :param redact_text: Enable text redaction using NER. When False, PII is detected but not redacted from the returned PDF. :param min_chunk_size: Minimum chunk size for text processing. :param ocr_langs: OCR languages to use for text recognition. :param custom_tags: Additional custom tags to detect and redact. :return: dict with "pdf" (base64-encoded redacted PDF), "detected_pii", and "processing_time".

ParametersJSON Schema
NameRequiredDescriptionDefault
pdfYes
tagsNo
api_keyYes
force_ocrNo
ocr_langsNo
custom_tagsNo
redact_textNo
rotated_textNo
min_chunk_sizeNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

Behavior3/5

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

With no annotations, the description must disclose behavioral traits. It explains detection and redaction behavior, and lists parameter effects (e.g., force_ocr, redact_text). However, it does not mention authentication needs beyond the api_key parameter, nor does it discuss side effects, rate limits, or performance implications. The behavior is partly transparent but not fully comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the purpose and then presents a parameter list in docstring format. While structured, it is verbose: each parameter and the return value are described in detail. It could be more concise without losing critical 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 (9 parameters, output schema present), the description covers the main functionality, all parameters, and the return structure (pdf, detected_pii, processing_time). It is sufficiently complete for an agent to invoke the tool correctly, though it lacks some edge-case details like error handling.

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 description coverage is 0%, so the description must compensate. It provides explanations for all 9 parameters, including defaults and conditional behavior (e.g., 'If empty, all available tags are used'). The api_key parameter includes a URL for generation. This adds significant meaning beyond the schema's bare types and enums.

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 clearly states the tool's purpose: 'Anonymize a PDF by detecting and redacting PII.' The verb 'anonymize' and resource 'PDF' are specific. However, it does not explicitly differentiate from sibling tools (anonymize_pdf_custom, detect_pii_pdf), missing an opportunity to clarify when each should be used.

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?

No guidance is provided on when to use this tool versus its siblings. The description covers parameters but does not discuss context, prerequisites, or alternative tools. An agent would not know whether to choose this over anonymize_pdf_custom or detect_pii_pdf based on the description alone.

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

anonymize_pdf_customAInspect

Anonymize a PDF using a custom natural-language prompt instead of predefined tags.

:param pdf: Base64-encoded PDF document to process. :param prompt: Custom prompt describing what to detect and redact, e.g. "Redact all dates, names, and email addresses". :param api_key: API key used to authenticate and meter usage. Generate one at https://pdf-redaction.com/apikeys/. :return: dict with "pdf" (base64-encoded redacted PDF), "detected_pii", and "processing_time".

ParametersJSON Schema
NameRequiredDescriptionDefault
pdfYes
promptYes
api_keyYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

Behavior3/5

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

Describes the API key requirement and return value structure, but does not disclose error cases, rate limits, or the destructive nature of redaction beyond implicit understanding.

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?

Well-structured with clear param and return sections, but could be slightly more concise (e.g., remove Python docstring formatting).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers basic functionality and parameters, but lacks details on prompt validation, size limits, or error handling; output schema exists but is not detailed.

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

Parameters5/5

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

Adds significant meaning beyond schema: 'pdf' is Base64-encoded, 'prompt' has an example, 'api_key' explains purpose and generation URL, all compensating for 0% schema coverage.

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 it anonymizes a PDF using a custom natural-language prompt, distinguishing it from siblings like 'anonymize_pdf' (uses predefined tags) and 'detect_pii_pdf' (detects only).

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?

No guidance on when to use this tool vs alternatives; no mention of sibling tools or conditions for use.

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

detect_pii_pdfAInspect

Detect PII (Personally Identifiable Information) in a PDF without redacting it.

:param pdf: Base64-encoded PDF document to process. :param api_key: API key used to authenticate and meter usage. Generate one at https://pdf-redaction.com/apikeys/. :param tags: PII tags to detect. If empty, all available tags are used. :param force_ocr: Force OCR processing even if text is extractable from the PDF. :param rotated_text: Enable detection and recognition of rotated text. :param ocr_langs: OCR languages to use for text recognition. :param custom_tags: Additional custom tags to detect. :return: dict with "detected_pii" and "processing_time".

ParametersJSON Schema
NameRequiredDescriptionDefault
pdfYes
tagsNo
api_keyYes
force_ocrNo
ocr_langsNo
custom_tagsNo
rotated_textNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

Behavior4/5

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

No annotations provided, so description carries full burden. It clearly states the tool does not redact (non-destructive), requires api_key for authentication, and returns a dict with 'detected_pii' and 'processing_time'. It does not cover rate limits or error behavior, but overall is transparent.

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?

Core purpose is front-loaded in the first sentence. However, the docstring format with repeated :param and :return lines adds verbosity. Could be more concise while retaining clarity.

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 7 parameters (2 required), no annotations, and an output schema noted but not detailed, the description covers the tool's behavior well. It explains each parameter's effect and the return structure. Slight gap: no mention of error conditions or edge cases.

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

Parameters5/5

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

Schema description coverage is 0%, so description adds meaning for all 7 parameters. It explains pdf (base64), api_key (with link for generation), tags (default: all), force_ocr, rotated_text, ocr_langs, and custom_tags. This goes far beyond the schema's type-only definitions.

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?

Description clearly states 'Detect PII (Personally Identifiable Information) in a PDF without redacting it.' The verb (detect), resource (PII in a PDF), and key distinction (no redaction) are explicit. It differentiates from sibling tools anonymize_pdf and anonymize_pdf_custom which likely perform redaction.

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 implies usage for detection without redaction by stating 'without redacting it,' but does not explicitly state when to use this tool over siblings or provide when-not-to-use guidance. Context from sibling names suggests alternatives, but no direct comparison.

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

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.