Skip to main content
Glama
pii-filter

pii-filter

by bratislava

scan_pii

Counts PII by type in text or files without returning content or requiring review, enabling assessment of PII exposure without handling sensitive data.

Instructions

Count PII by type in text or a file WITHOUT returning any content (no review needed).

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_pii"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
textNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 burden and does disclose important behavior: it counts PII by type and returns no content. It does not cover permissions, file handling, error behavior, or what happens if both path and text are supplied.

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 front-loaded sentence with no wasted wording. The key distinction from content-returning tools is emphasized clearly.

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 scanner with an output schema, the description covers the core purpose and return behavior at a high level. However, it leaves unresolved how callers should choose between path and text and omits basic operational details expected when no annotations are present.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It maps 'text or a file' to the text and path parameters, but does not explain mutual exclusivity, required input, path format, or precedence when both are provided.

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?

The description states a specific verb and resource: count PII by type in text or a file. It also clarifies the key outcome that no content is returned, which helps distinguish it from redaction siblings, though it does not explicitly name those alternatives.

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?

The phrase 'WITHOUT returning any content (no review needed)' implies this tool is for counting only rather than redacting. However, it does not explicitly state when to use scan_pii versus redact_file or redact_text, so the guidance remains implied rather than explicit.

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