Skip to main content
Glama
lgpd-mask-mcp

lgpd-mask-mcp

query_masked

Run structured SELECT queries with joins and filters while PII columns are masked, so agents can retrieve database data without exposing sensitive information.

Instructions

Run a structured SELECT (no raw SQL) with joins/where; PII columns are masked.

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": {
      "from": "<from>",
      "columns": "<columns>"
    },
    "name": "query_masked"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYes
joinsNo
limitNo
whereNo
columnsYes
order_byNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 disclosure burden, and it does deliver one genuinely important trait: PII columns are masked in results. Beyond that it is silent on row-limit defaults or maximums, whether masking is applied to filter values or only output, permission requirements, and error behavior for invalid tables or columns.

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 filler; each clause (structured, no raw SQL, joins/where, masking) adds information. The semicolon-joined fragment style is dense but not padded, so it loses little.

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?

For a six-parameter query tool with no annotations, no output schema, and zero schema coverage, the definition is too thin. An agent cannot learn the result shape, whether masked columns are renamed or nulled, the default/max row count, or how to discover valid table and column names before querying.

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% across six parameters, so the description must compensate and largely does not. It mentions 'joins/where' and implicitly columns and from, but adds no meaning about join types (inner/left), the nine where operators, limit defaults, or order_by direction — all of which the schema exposes only as bare field names.

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 and resource ('Run a structured SELECT') and adds two discriminating constraints: no raw SQL, and PII masking. It is clearly distinct from the schema-introspection siblings (list_tables, describe_schema) and from sample_safe, though it never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance: nothing says whether to call describe_schema or list_tables first to discover table and column names, nor when sample_safe or a masked query is the better choice. The 'no raw SQL' clause is a constraint on how to call it, not a routing rule for whether to call it.

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