Skip to main content
Glama

scan_pii

Scans text content to detect personally identifiable information such as emails, phone numbers, SSNs, and credit card numbers, helping prevent sensitive data exposure.

Instructions

Scan text content for personally identifiable information (PII) like emails, phone numbers, SSNs, credit cards, etc.

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": {
      "content": "<content>"
    },
    "name": "scan_pii"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesText content to scan for PII

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It conveys that this is a detection pass over supplied text, but says nothing about the response shape (boolean, list of matches, redacted text, severity), whether the scan is local or remote, or any latency/rate considerations. Only the PII category list adds real behavioral color.

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?

One short sentence, front-loaded with the action and resource, with no wasted clauses. The trailing 'etc.' is the only slack, leaving the detected category set open-ended.

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 one-parameter, no-output-schema tool this is close to sufficient on the input side, but an agent still cannot predict what comes back from a scan or how findings are reported. Given that sibling tools exist with overlapping detection behavior, a sentence on scope and return would round it out.

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?

The single parameter has 100% schema description coverage ('Text content to scan for PII'), so the schema already does the work. The description's category examples ('emails, phone numbers, SSNs, credit cards, etc.') hint at what the content will be matched against, which is marginally useful context beyond the schema, but nothing about size limits or format is added.

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 names a specific verb (scan) and resource (text content) and enumerates concrete PII categories (emails, phone numbers, SSNs, credit cards), so an agent immediately knows what it detects. It does not distinguish itself from siblings like scan_prompt or scan_output, which likely target the same detector at different input sources.

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?

Usage is only implied: the tool takes raw 'text content', which suggests it is the generic entry point versus the source-specific siblings, but the description never says when to pick this over scan_prompt, scan_output, or scan_memory. There are no exclusions or prerequisites stated.

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