Skip to main content
Glama

analyse_pdf

Analyse PDFs and other documents to find personal data, group it by entity with redaction labels, and produce an operator report without modifying the file.

Instructions

List the personal data found in a document (PDF, .p7m, office file, image: give filename for non-PDF input so the format is known), grouped by entity with the label each will get, without changing the document. config: language, packs, public_persons, public_domains, public_values, policy, style, ocr (see README). add: text to redact anyway; keep: text to leave readable. The report contains the values found: it is meant for the operator.

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

Input Schema

NameRequiredDescriptionDefault
addNo
keepNo
pathNo
configNo
filenameNo
pdf_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 load; it does disclose the important traits that the document is left unmodified and that the returned report contains the actual personal-data values, warning that it is meant for the operator. It stays silent on permissions, size limits, error behavior for unsupported formats, and what OCR does to runtime.

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?

Purpose is front-loaded and each clause adds information: format note, entity grouping, non-mutation, then per-parameter glosses. The inline glosses are dense but readable; the mid-sentence parenthetical about `filename` slightly interrupts the main statement.

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?

No output schema exists, and the description does describe the return value (a report of found values grouped by entity with labels, containing sensitive data). Given six optional parameters and zero schema coverage, the main remaining hole is the undocumented document-input parameters, which keeps it from being fully complete.

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 coverage is 0%, so the description must compensate; it explains four of six parameters (`filename`, `config` with its named keys, `add`, `keep`), which is genuinely useful. It says nothing about `path` or `pdf_base64` — the two parameters that actually supply the document — leaving the agent to guess the transport mechanism and whether they are mutually exclusive.

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?

States a concrete verb and resource ('List the personal data found in a document') plus scope: it covers PDF, .p7m, office files and images, groups results by entity with the label each will get. It separates itself from a mutation sibling by saying it operates 'without changing the document', though it never names redact_pdf directly.

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?

Gives one explicit conditional rule: pass `filename` for non-PDF input so the format is known. Otherwise when-to-use is only implied through 'without changing the document', which hints that a separate redaction path exists but never states when to call that instead or what preconditions (readable path, supported format) must hold.

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

Deploy Server

Other Tools