Skip to main content
Glama
twoer

pdf-toolbox-mcp

by twoer

Tool Redact Text

tool_redact_text

Automatically redact sensitive content by blackening every matching keyword in a PDF. Rasterizes redacted pages to physically remove text, while preserving text layers elsewhere.

Instructions

按内容真涂黑:自动定位每个关键词的全部出现处并涂黑(无需手工量坐标)。 如"把所有合同编号涂掉"。被涂页光栅化、文字物理删除;其余页保留文本层。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpiNo
pathYes
outputNo
queriesYes
overwriteNo
rasterize_allNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and reveals destructive effects: redacted pages are rasterized, text is physically deleted, and other pages retain their text layer. It does not cover output/overwrite side effects, but the core mutating behavior is explicit.

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?

Two terse sentences plus a concrete example convey the action, workflow, and destructive side effects with no filler. The key behavior is front-loaded.

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?

The description is sufficient for the core redaction scenario but incomplete for optional output behavior: it does not clarify how dpi, overwrite, output, or rasterize_all alter the result. Since an output schema exists, returns are covered, but the overall tool behavior is not fully specified.

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

Parameters2/5

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

Schema coverage is 0%, so the description must explain parameters, but it only clarifies 'queries' as keywords. 'path', 'dpi', 'output', 'overwrite', and 'rasterize_all' receive no meaningful explanation, leaving most parameters under-specified.

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?

Identifies a precise action: automatically locate every occurrence of given keywords and black them out by content, without manual coordinates. The phrase '按内容' and the example distinguish it from coordinate-based redaction tools and sibling tool_redact.

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 example '把所有合同编号涂掉' and the automatic keyword-location behavior make the intended use case clear. It implies a content-driven redaction workflow, though it never explicitly names alternatives or says 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.

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/twoer/pdf-toolbox-mcp'

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