Skip to main content
Glama

generate_forensic_pdf_fixture

Idempotent

Generate deterministic synthetic multi-revision PDF fixtures with fake redactions, ghost EOF revisions, metadata paths, annotations, and JavaScript for security regression testing.

Instructions

Deterministically generate a synthetic multi-revision Flate-compressed PDF fixture containing fake black-box redactions, 2 %%EOF ghost revisions, UTF-16BE /Info, XMP workstation paths, /Annots, and /JavaScript for security regression testing.

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

Input Schema

NameRequiredDescriptionDefault
presetNoForensic scenario preset to synthesize.ma-contract
outputPathNoOptional destination filesystem path to write the generated .pdf fixture.
returnBase64NoWhen true (default), includes the generated PDF as Base64 in the response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), and the description usefully corroborates determinism and discloses exactly what the generated file contains, including deliberately hostile elements like /JavaScript and fake redactions. It does not mention that a filesystem write occurs when outputPath is set or how large the artifact is, leaving a small gap.

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?

A single sentence with no filler; the core action comes first and the artifact inventory follows. The dense jargon stacking ('UTF-16BE /Info, XMP workstation paths, /Annots') is efficient for an expert audience, though it borders on a feature dump.

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?

With full schema coverage, annotations, and no output schema, the definition covers what an agent needs: what is produced, that it is deterministic, and where it can be written. The main omission is any statement about response shape or artifact size, which matters somewhat given the base64 default.

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 explains preset, outputPath, and returnBase64. The description adds only the notion that presets correspond to forensic scenarios, without characterizing what each preset contains. Baseline 3 applies when the schema carries the semantics.

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 ('generate') and a precisely characterized resource ('synthetic multi-revision Flate-compressed PDF fixture'), and enumerates the artifact contents (ghost revisions, UTF-16BE /Info, /Annots, /JavaScript). Its generative purpose is clearly distinct from the audit/scrub siblings, though no sibling is named explicitly.

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 states the intended context, 'for security regression testing,' which implies when to reach for it. There is no explicit exclusion, no prerequisite notes (e.g., whether it must precede audit_pdf_forensics), and no named alternatives, so guidance is implied rather than spelled out.

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