Skip to main content
Glama

Strip PDF Metadata (Privacy Sanitizer)

pdf_strip_metadata

Remove hidden author, creator, producer, title, keywords, and timestamps from a PDF locally before sharing to reduce embedded metadata exposure.

Instructions

Remove hidden author, creator, producer, title, keywords, and timestamps from a PDF locally before sharing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputPath": "<inputPath>"
    },
    "name": "pdf_strip_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputPathYesLocal PDF file path
outputPathNoOptional sanitized PDF path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that processing is local and enumerates exactly which metadata fields are removed. However, it does not clarify whether the original file is modified in place, whether an existing output file is overwritten, or what happens if outputPath is omitted.

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?

The definition is a single well-formed sentence that front-loads the core action and then lists the removed fields. There is no redundant or filler language.

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 simple two-parameter sanitization tool with full schema coverage, the description covers the essential purpose and scope. It is still incomplete on output behavior, particularly whether sanitization produces a new file or modifies the source when outputPath is omitted.

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 inputPath and outputPath parameters are already documented in the schema. The description does not add format details or explain the default behavior when outputPath is omitted, so it does not exceed the 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, 'Remove,' with a clearly scoped resource: hidden author, creator, producer, title, keywords, and timestamps in a PDF. It also adds the qualifier 'locally' and the context 'before sharing,' making the tool unmistakably a privacy sanitizer rather than a general PDF editor.

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

Usage Guidelines4/5

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

The phrase 'before sharing' gives a clear situational trigger for when to use the tool. It does not explicitly name alternatives or exclusions, but among the sibling PDF tools none obviously overlap with metadata stripping.

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