Skip to main content
Glama

redact_pdf

Create a redacted PDF copy by replacing sensitive values with consistent labels, removing metadata, embedded files, and annotations, and converting office documents or images to PDF.

Instructions

Write the redacted copy: every value is replaced by its label (Person 1, Tax code 1...), metadata, embedded files and annotations removed, a "redacted copy" footer on every page. Non-PDF input (office documents, images: give filename) is converted; the output is always a PDF. Returns the PDF as Base64 (or writes it to output_path when paths are enabled) and the report, without the original values. Publish only with outcome "ok" or after a human check.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "redact_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNo
keepNo
pathNo
configNo
filenameNo
pdf_base64No
output_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/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 exactly what is destroyed (metadata, embedded files, annotations), the added footer, automatic conversion of non-PDF inputs, and that the output is always a PDF. It also states the return shape (Base64 PDF or written to `output_path` when paths are enabled) and that the report omits original values, plus a safety gate before publishing.

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?

The verb and core transformation are front-loaded, and every clause adds information about output or safety. It is dense semicolon-chained prose, but not padded.

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?

For a 7-parameter, zero-annotation, no-output-schema tool, the behavioral picture is strong but not complete. An agent still cannot tell what `add`, `keep` or `config` control, which matters for invoking a redaction tool correctly.

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% across 7 parameters, so the description must compensate and only partly does. It clarifies `filename` (non-PDF source), `output_path` (written when paths are enabled) and implicitly `pdf_base64`, but `add`, `keep`, `path` and `config` are never explained, leaving the selection/redaction controls opaque.

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 opens with a specific verb+resource pair ("Write the redacted copy") and details the transformation: values replaced by labels, metadata/embedded files/annotations stripped, footer added. It is clearly distinguishable from a read-only analysis sibling, though it never names or contrasts with analyse_pdf directly.

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

Usage Guidelines3/5

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

It gives implied usage context (use `filename` for office documents or images) and a publish gate ("Publish only with outcome \"ok\" or after a human check"). However, it never states when to prefer this over analyse_pdf, nor any precondition such as needing a path or prior analysis step.

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

Deploy Server

Other Tools