Skip to main content
Glama
omitly

omitly-mcp

Official
by omitly

redact_by_entity

Find and redact PII in a PDF on-device, keeping only the requested entity kinds. Verifies redaction and returns an audit log—nothing is uploaded.

Instructions

Find and redact PII in a PDF in ONE on-device step: scan, keep only the requested entity kinds (email/ssn/phone/card plus the Australian tfn/abn/acn/medicare/crn/ihi/bsb — omit kinds to redact every kind detected), remove them, verify, and return what was redacted plus the audit log. This is the 'just scrub the obvious PII' shortcut; when you need to review before removing, call find_sensitive_regions first. Same caveat as the detector: matches are best-effort pattern matching, not a completeness guarantee and not a compliance assessment. Nothing is uploaded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindsNoentity kinds to redact; omit to redact all detected
drawBoxNoalso paint a black bar (default: opaque fill only)
pdfPathYesabsolute path to the source PDF
regionsNonarrow to these regional packs (intersects with `kinds`); omit for all
outputPathYesabsolute path to write the redacted PDF

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
auditYes
outputYes
verdictYes
redactedYes
redactedCountYes
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It discloses that processing is on-device, matches are best-effort pattern matching (not a completeness guarantee or compliance assessment), returns what was redacted plus an audit log, and that nothing is uploaded. This is rich, non-obvious behavioral context.

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 sentences deliver all essential information: purpose, usage flow, alternatives, caveats, and privacy/upload behavior. The opening is front-loaded with the core action, and every clause earns its place without redundancy.

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

Completeness5/5

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

With an output schema present, the description still explains what is returned ('what was redacted plus the audit log') and handles the tool's complexity: entity kinds, omit-all behavior, regional packs, review flow, and limitations. This is fully complete for a 5-param tool.

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 coverage is 100%, so baseline is 3. The description adds meaningful semantics beyond the schema: 'omit `kinds` to redact every kind detected' clarifies default behavior, and 'regions narrow to these regional packs (intersects with `kinds`)' explains the relationship between params. This rises above baseline.

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 uses a specific verb+resource: 'Find and redact PII in a PDF in ONE on-device step' and clearly distinguishes this from sibling tools by framing it as the 'just scrub the obvious PII' shortcut. It explicitly contrasts with find_sensitive_regions, which is a strong differentiator.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states when to use this tool ('shortcut' for scrubbing obvious PII) and explicitly names an alternative: 'when you need to review before removing, call find_sensitive_regions first.' It also mentions the same caveat as the detector, giving clear context for suitability.

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/omitly/omitly-mcp'

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