Skip to main content
Glama

PromptVault

Scan a document for sensitive data

scan_document
Read-onlyIdempotent

Premium. Use BEFORE sharing, uploading or sending a document anywhere: scans a PDF (including scanned pages, via OCR), image (PNG/JPG/TIFF/BMP), DOCX, XLSX, CSV, TXT or JSON file - or pasted text - for the sensitive data your PromptVault administrator configured (for example Email, SSN, Phone, Address, CustomerName, CustomerID). Returns a summary: which elements were found, how many, on which pages, and a risk level. Never returns the values. Send filename + content_base64 for a file, or document_text.

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

Input Schema

NameRequiredDescriptionDefault
filenameNo
document_textNo
content_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description adds genuinely non-obvious traits: OCR for scanned pages, results limited to administrator-configured elements, a privacy guarantee that values are never returned, and a specified summary shape (elements, counts, pages, risk level). It omits failure modes — unsupported/corrupt files, size limits, or behavior when no elements are configured — which matters for an openWorldHint tool.

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?

Front-loaded with the entitlement and the timing directive, then the input formats, then the return contract and the input-mode rule. Dense but every clause supplies distinct information an agent needs.

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 no output schema, the description compensates by describing the return summary and the negative guarantee that values are never returned. All three parameters are explained in terms of usage. Remaining gap is error/limit handling for a three-parameter, open-world scanning tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and largely does: it states the two mutually exclusive input modes ('filename + content_base64 for a file, or document_text'). What remains unexplained is the role of filename in file mode and any encoding expectations for content_base64.

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?

States a specific verb and resource ('scans a ... file ... for the sensitive data your PromptVault administrator configured') and enumerates the supported inputs (PDF with OCR, PNG/JPG/TIFF/BMP, DOCX, XLSX, CSV, TXT, JSON, pasted text) plus the configured element examples. This is far more than a restatement of the name, and the 'Premium' prefix plus the configuration dependency distinguishes it from generic file tools.

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?

Gives an explicit trigger with emphasis: 'Use BEFORE sharing, uploading or sending a document anywhere', which tells the agent the workflow position. It stops short of naming alternatives or exclusions — siblings like scan_file, scan_text, or check_before_send are not addressed, so an agent has no rule for choosing between them.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources