Skip to main content
Glama
lgpd-mask-mcp

lgpd-mask-mcp

classify_pii

Identify whether table columns contain PII using a YAML policy and schema heuristics without reading row data, so agents can decide what to mask before querying.

Instructions

Classify columns as PII using YAML policy and heuristics (no row data).

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": {
      "table": "<table>"
    },
    "name": "classify_pii"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYes
columnsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose meaningful behavior: classification is driven by a YAML policy and heuristics and never touches row data, which tells the agent this is metadata-only and privacy-safe. It omits determinism, what happens when no policy matches, and what the result contains.

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 front-loaded sentence with no wasted words; the mechanism and the privacy constraint are both packed in. It is terse to the point of under-specification, but nothing is redundant.

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

Completeness2/5

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

With no annotations, no output schema, and zero parameter documentation, the description is too thin for the tool's complexity. An agent still cannot tell what the response looks like (per-column labels? confidence scores?) or whether a policy file must be provisioned first.

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% for both parameters, so the description must compensate and it does not. It never explains the expected format of 'table' (bare name vs qualified path) or what omitting the optional 'columns' array means (classify all columns?).

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?

Names a specific verb (Classify) and target (columns as PII) plus the mechanism (YAML policy and heuristics). An agent can tell this is metadata classification, not data retrieval, and the '(no row data)' qualifier reinforces the distinction from data-reading siblings, though no sibling is named 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?

The '(no row data)' note implies when this is preferable — inspecting schema safely rather than querying rows — but there is no explicit when-to-use statement, no prerequisites (is a YAML policy required to exist?), and no named alternative such as query_masked or sample_safe.

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