Skip to main content
Glama

PromptVault

Scan a file for personal data

scan_file
Read-onlyIdempotent

Premium. Use BEFORE uploading or sharing a file: checks a .pdf, .docx, .csv, .txt, .md or .json file (base64 content) for personal data and secrets. Returns counts, types and positions; the file is not stored.

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": {
      "filename": "<filename>",
      "content_base64": "<content_base64>"
    },
    "name": "scan_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
content_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing that the tool is Premium-gated, listing accepted file types, and promising the file is not stored — a data-handling guarantee an agent needs before sending sensitive content. Annotations already cover read-only and non-destructive semantics, so this added context is meaningful rather than redundant.

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-loads the 'Premium' caveat, then when-to-use, then what is accepted, then what is returned, then the privacy guarantee, in roughly two compact sentences with no filler.

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, but the description summarizes the return shape (counts, types, positions) and the non-persistence guarantee. Size limits, error behavior, and how positions are indexed are unstated, which is a small gap for a two-parameter scan 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 coverage is 0%, so the description must carry the load, and it does: the file-type list gives meaning to 'filename' and '(base64 content)' explains the encoding expected by 'content_base64'. It does not state size limits or whether the extension must match the actual content, minor residual gaps.

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 specific verb and resource ('checks ... file ... for personal data and secrets') and enumerates the accepted formats and the return payload (counts, types, positions). It never names a sibling such as scan_text or scan_document to differentiate itself, so it stops short of a 5.

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 explicit timing guidance ('Use BEFORE uploading or sharing a file'), which tells the agent when to reach for it. It offers no exclusions or named alternatives for the text-only/document cases, leaving the agent to infer the boundary with scan_text and scan_document.

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