Skip to main content
Glama

Remove PDF metadata

remove_pdf_metadata

Strip hidden metadata—author, title, keywords, dates and XMP—from a PDF while leaving page content unchanged. Saves a clean copy to a new path.

Instructions

Save a copy of a PDF without hidden metadata: author, title, subject, keywords, creator and producer apps, dates and XMP data. Page content is not changed. Use clean_office for Word, Excel and PowerPoint files. Returns the saved path; the input is not changed.

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": {
      "file": "<file>"
    },
    "name": "remove_pdf_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesPath to the file (absolute, or relative to the working directory).
outputNoWhere to save the result. Defaults to a new file next to the input.
passwordNoThe PDF's current password, if it has one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false and readOnlyHint=false, and the description is consistent with that (a new file is written). Beyond the annotations, it adds genuinely useful behavior: which metadata is destroyed, that page content is preserved, that the input file is untouched, and that the saved path is returned. It stops short of stating failure modes, e.g. behavior on encrypted PDFs or when the output path already exists.

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?

Front-loaded with the core action and effect, followed by the sibling routing and return-value note in short declarative sentences. The metadata enumeration is somewhat long but each item is informative; no filler or repeated phrasing.

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 three-parameter file operation with no output schema, the description covers purpose, scope boundary, sibling alternative, and return value. Only minor gaps remain: no note on overwriting an existing output path, and no explicit statement about password-protected handling despite a password parameter existing.

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 all three parameters (file, output, password) are already documented, and the tool has only three params with no enums. The description implies copy-to-new-path semantics consistent with the optional 'output' parameter but adds no format, precedence, or default detail beyond the schema; baseline 3 applies.

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?

Specific verb+resource+effect: 'Save a copy of a PDF without hidden metadata', with an enumerated list of exactly which metadata categories are stripped (author, title, subject, keywords, creator/producer, dates, XMP). It also explicitly bounds the operation ('Page content is not changed') so an agent knows it is not a scrub-the-content tool.

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

Usage Guidelines5/5

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

Explicit routing for the most likely confusion: 'Use clean_office for Word, Excel and PowerPoint files' names the sibling and the condition that selects it. The format boundary (PDF here vs Office elsewhere) is stated directly, so no inference is required.

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