Skip to main content
Glama

compile_clean_burned_pdf

Idempotent

Compile a clean PDF-1.7 from JPEG page frames or rendered page specs with burn-in redaction boxes, optional watermark, and a SHA-256 zero-leak receipt to verify sensitive terms are removed.

Instructions

Compile a brand-new zero-text-stream %PDF-1.7 binary from Base64 JPEG (DCTDecode) page frames or rendered page specs with solid pixel burn-in redaction boxes and optional watermark, then re-scan the output bytes to issue a cryptographic SHA-256 Zero-Surviving-Leak Receipt.

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

Input Schema

NameRequiredDescriptionDefault
burnBoxesNoSolid black pixel burn-in rectangles [{ x, y, width, height }] irrevocably stamped into the raster frame.
outputPathNoOptional filesystem path to save the compiled clean %PDF-1.7 file.
targetTermsNoSensitive terms verified to have 0 surviving matches in the compiled %PDF-1.7 receipt.
returnBase64NoWhen true, returns the compiled %PDF-1.7 bytes as Base64 in the JSON tool response.
visibleLinesNoSafe uppercase/ASCII visible text lines rendered purely as pixels when jpegPagesBase64 is not supplied.
watermarkTextNoOptional diagonal security watermark burned into page pixels (e.g. "REDACTED").
jpegPagesBase64NoOptional array of Base64-encoded baseline JPEG page images to wrap into a clean %PDF-1.7.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses important behavior: it creates a zero-text-stream PDF, burns redaction boxes into pixels, optionally applies a watermark, and re-scans output bytes to issue a SHA-256 leak receipt. It stops short of describing failure modes, overwrite behavior, or output response shape, but the annotations already cover read/write safety and idempotency.

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 description is a single front-loaded sentence with no filler, and the core purpose appears first. It is dense with technical jargon and could be split for readability, but every clause contributes relevant information.

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 complex seven-parameter tool with no output schema, the description covers the main compilation and receipt behavior but leaves out response format details, usage boundaries, and any constraints on combining input modes. It is adequate but not complete for an agent to invoke confidently without inspecting the schema.

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 documents all seven parameters. The description adds conceptual meaning by distinguishing Base64 JPEG page frames from rendered page specs and by explaining pixel burn-in redaction, but it does not add parameter-specific syntax or constraints beyond the schema, so the baseline 3 is appropriate.

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 states a specific verb ('Compile') and a precise resource ('brand-new zero-text-stream %PDF-1.7 binary'), plus the key operations: burn-in redaction boxes, optional watermark, and SHA-256 receipt. It does not explicitly differentiate this tool from the sibling forensic/scrub tools, so it falls short of a 5.

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

Usage Guidelines2/5

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

The description explains what the tool does but gives no when-to-use guidance, no exclusions, and no reference to alternatives such as audit_pdf_forensics, generate_forensic_pdf_fixture, or scrub_pdf_metadata. An agent must infer that this is the creation path rather than the audit or cleanup path.

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