Skip to main content
Glama

audit_unmasked_pii_exposure

Read-onlyIdempotent

Scans SQL seed files, CSV fixtures, and JSONL logs offline to detect unmasked emails, payment cards, national IDs, public IPv4s, and exposed tokens while masking matched PII in findings.

Instructions

Scans SQL seed files, CSV fixtures, or JSONL logs offline for unmasked live emails, Luhn payment cards outside sandbox BINs, GB 11643-1999 18-digit IDs, public IPv4s, and unredacted JWT/API tokens without echoing raw secrets.

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

Input Schema

NameRequiredDescriptionDefault
contentNoRaw SQL, CSV, JSONL, or text fixture content to inspect for unmasked PII exposure.
filePathNoOptional local file path to inspect when content is omitted.
filenameNoOptional display filename attached to audit findings.
redactFindingsNoWhen true (default), masks middle characters of matched PII in finding previews.
allowSyntheticCnIdsNoWhen true, suppresses alerts on 18-digit GB 11643 IDs in files already sanitized with SeedMask.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, idempotent, and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: the scan runs entirely offline and does not echo raw secrets in output, which is a meaningful disclosure for a secrets-detection tool. It stops short of describing finding severity, counts, or output shape.

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?

A single dense sentence, front-loaded with the verb and resource, with the long detection list earning its place as the tool's actual scope. It is compact for a tool with five detection classes, though the list-heavy phrasing makes it slightly harder to skim than a two-sentence split would.

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?

The core scope is covered and annotations carry the safety profile, but with required-parameters: 0 the description never states that at least one of content or filePath must be supplied, nor what the findings look like (no output schema exists to cover that). For an audit tool an agent is expected to act on, that is a real gap.

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 100%, so the baseline is 3 and the schema already documents redactFindings and allowSyntheticCnIds in detail. The description contributes only marginal extra semantics — notably that Luhn card matches are excluded when inside "sandbox BINs" — but adds little about content vs. filePath precedence or the optional filename parameter.

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?

"Scans SQL seed files, CSV fixtures, or JSONL logs offline" gives a concrete verb, resource, and operating mode, and the enumerated detection targets (live emails, Luhn cards, GB 11643 IDs, public IPv4s, JWT/API tokens) make the purpose unmistakable. It implicitly separates itself from the anonymize sibling by framing the tool as inspection-only ("scans ... without echoing raw secrets"), though it never names that sibling explicitly.

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: "offline" and the file-format list hint at when this is the right tool, but there is no explicit when-to-use statement and no routing to the alternatives for remediation (e.g., anonymize_sql_or_structured_dump) once findings are found. No prerequisites or exclusions are stated.

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