Skip to main content
Glama

audit_pdf_forensics

Read-onlyIdempotent

Audit local or Base64 PDFs to expose fake black-box redactions, hidden ghost revisions, metadata leaks, JavaScript triggers, and surviving target secrets before sharing.

Instructions

Audit a local PDF file path or Base64-encoded PDF binary to detect fake black-box redactions (dark 0 0 0 rg ... re f rectangles over copyable BT...Tj/TJ text streams), incremental %%EOF ghost revisions, UTF-16BE/octal /Info fields, XMP workstation paths, unapplied /Subtype /Redact boxes, reviewer /Annots, /JavaScript triggers, and surviving target secrets.

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": "audit_pdf_forensics"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathNoLocal filesystem path to the .pdf file to inspect (provide filePath or pdfBase64).
pdfBase64NoBase64-encoded PDF binary payload when auditing in-memory bytes without touching disk.
targetTermsNoOptional list of sensitive terms, SSNs, or amounts to test for survival across active streams, ghost revisions, and metadata.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real value by naming the concrete forensic signals it inspects (ghost revisions, unapplied redact annotations, JS triggers), which tells the agent what evidence will be surfaced. It stops short of saying how findings are reported or ranked.

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?

One front-loaded sentence opens with the verb and inputs, then spends the rest on the detection list. Dense but every clause names a distinct check; the long parenthetical of raw PDF operators is justified for a forensics tool but is close to over-stuffed.

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

Completeness4/5

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

For a read-only tool with no output schema, the description covers what is inspected thoroughly and makes the two input modes clear. The remaining gap is that it never indicates the shape of the result (findings list, severity, per-check verdicts), which matters for interpreting a forensic audit.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already defines filePath, pdfBase64 and targetTerms in detail. The description reinforces targetTerms by mentioning 'surviving target secrets', tying the parameter to the ghost-revision and metadata checks, but adds no syntax or format guidance beyond that. Baseline 3 is appropriate.

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?

States a specific verb (audit) plus the resource (local PDF path or Base64 binary) and enumerates the exact artifacts it hunts: fake black-box redaction rectangles, incremental %%EOF ghost revisions, UTF-16BE/octal /Info fields, XMP paths, unapplied /Subtype /Redact boxes, /Annots, /JavaScript. This is far more specific than any sibling name suggests and cannot be confused with scrub_pdf_metadata or compile_clean_burned_pdf.

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?

Usage is implied: you run it to detect whether redactions are fake or metadata survives, and the filePath-vs-pdfBase64 choice is stated in the schema. However, there is no explicit when-to-use-vs-alternatives guidance, no statement that this is a read-only detection step that should precede scrub_pdf_metadata, and no exclusions.

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