Skip to main content
Glama
agxhub

doc-redactor

by agxhub

redact_scan

Scan documents non-destructively to detect sensitive content before redaction. Supports PDF (including OCR), DOCX, XLSX, PPTX, and text formats, returning candidate findings and metadata leaks.

Instructions

非破坏性扫描文档(不改文件),发现候选敏感项。支持 PDF(文字/扫描件自动 OCR)、DOCX、XLSX、PPTX、TXT/MD/CSV 等。返回候选清单(词条/来源/位置/次数)、 元数据泄露、格式相关清单。enable_ner 需 zh_core_web_trf 模型;标准/公文类 文档建议关闭(噪声大)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordsNo
enable_nerNo
input_pathYes
ner_labelsNo
enable_regexNo
Install Server

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does well: it discloses non-destructive behavior, automatic OCR on scanned PDFs, the output categories (candidate list, metadata leakage, format-related list), and the NER model prerequisite plus noise caveat. No contradictions with annotations exist.

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?

Three compact sentences with the most important safety property (non-destructive) front-loaded, followed by formats, outputs, and the NER caveat. No filler.

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 covers purpose, formats, outputs, and a key parameter caveat, which is substantial for a tool with no annotations or output schema. However, it omits explanations for four parameters and does not describe return structure details beyond the high-level list, leaving an agent to infer important call semantics.

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 description coverage is 0%, so the description must compensate for five parameters. It only adds meaning for enable_ner (model requirement, recommendation to disable). It does not explain keywords, ner_labels, enable_regex, or input_path beyond their property names.

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 states a specific verb (scan), a resource (documents), a key behavioral distinction (non-destructive, does not modify files), and the output (candidate sensitive items). This clearly differentiates it from siblings like redact_apply, which presumably applies changes.

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?

It clearly conveys the scanning context and supported document types, and gives an explicit conditional usage note (disable NER for standard/official documents due to noise). It does not explicitly name alternatives or say 'use redact_apply to apply redactions,' so it stops short of a full when/when-not comparison.

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

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/agxhub/doc-redactor'

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