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.
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.
Tool Definition Quality
Average 3.8/5 across 3 of 3 tools scored.
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.
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.
Three tools cover the core operations of detection, standard redaction, and custom redaction. The count is well-scoped for a focused PDF redaction service.
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 toolsanonymize_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".
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| tags | No | ||
| api_key | Yes | ||
| force_ocr | No | ||
| ocr_langs | No | ||
| custom_tags | No | ||
| redact_text | No | ||
| rotated_text | No | ||
| min_chunk_size | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
Tool Definition Quality
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.
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.
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.
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.
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.
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".
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| prompt | Yes | ||
| api_key | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
Tool Definition Quality
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.
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.
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.
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.
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.
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".
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| tags | No | ||
| api_key | Yes | ||
| force_ocr | No | ||
| ocr_langs | No | ||
| custom_tags | No | ||
| rotated_text | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
Tool Definition Quality
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.
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.
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.
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.
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.
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.
Claim this connector by publishing a /.well-known/glama.json file on your server's domain with the following structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"maintainers": [{ "email": "your-email@example.com" }]
}The email address must match the email associated with your Glama account. Once published, Glama will automatically detect and verify the file within a few minutes.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!