Skip to main content
Glama

detect_pii

Read-only

Scan dataset columns for personal data like emails, phone numbers, card numbers, IBANs, IPs, SSNs, and name/address/date/ID hints; report match types, counts, and evidence without returning values.

Instructions

Find columns that look like personal data: emails, phone numbers, card numbers, IBANs, IP addresses, US social security numbers, and names, addresses, birth dates or ID numbers suggested by the column name.

Reports which kinds, how many values match, and whether the evidence is the values or only the column name. Never returns the values themselves.

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": {
      "dataset": "<dataset>"
    },
    "name": "detect_pii"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoColumns per page.
offsetNoIndex of the first item to return, for paging.
columnsNoColumns to scan. Omit to scan every column.
datasetYesA dataset name returned by load_dataset.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely new behavior beyond that: it reports which kinds matched, match counts, and critically whether the evidence is actual values or only the column name inferring PII. The privacy guarantee ('Never returns the values themselves') is exactly the kind of context an agent needs and cannot get from annotations.

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?

Two sentences, no filler. The PII category list is long but it is the substance of the tool, and the most decision-relevant fact (values are never returned) is placed at the end as a clear closing constraint.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-shape explanation is not strictly required, yet the description still summarizes the report contents (kinds, counts, evidence source). Combined with full schema coverage and read-only annotations, nothing needed to invoke this correctly is missing.

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 description coverage is 100%, so limit, offset, columns and dataset are all documented in the schema and the baseline of 3 applies. The description adds only an indirect hint about the columns parameter through its mention of column-name-based inference, but no syntax, ordering or cost implications of paging.

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 ('Find columns that look like personal data') and enumerates the detection categories, so the agent knows exactly what class of result to expect. This is clearly distinguishable from siblings like check_missing, find_duplicates or profile_dataset.

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 implied by the PII-detection framing, but the description never says when to reach for this versus profile_dataset or describe_column, nor does it name any exclusions or sequencing (e.g. must load_dataset first). The agent has to infer placement in the workflow from the shaded context.

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