Skip to main content
Glama

DataMask

Plan Postgres data masking

plan_masking
Read-only

Plan how to mask personal data in a PostgreSQL schema before copying production to staging or dev. Input: the schema only (pg_dump --schema-only output or CREATE TABLE statements). Only table and column definitions are read; data dumps (COPY or many INSERT rows) are refused. Returns a masking method for every column (keep, fake email or name, coarsen dates, random secrets, blank free text…) with the reason, a mask.sql that applies them to a copy (foreign keys get the same expression as the key they point at, so joins still match) and a check.sql that must return 0 for every check. Free: up to 150 columns per call; a bigger schema is planned in whole tables up to that.

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": {
      "schema_sql": "<schema_sql>"
    },
    "name": "plan_masking"
  }
}

Input Schema

NameRequiredDescriptionDefault
schema_sqlYesThe PostgreSQL schema: pg_dump --schema-only output or CREATE TABLE statements, without data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already establish readOnly=true, destructive=false, closed-world, so the safety profile is covered. The description still adds real behavior beyond that: refusal semantics for data dumps, a free-tier ceiling of 150 columns per call, whole-table chunking for larger schemas, and the guarantee that check.sql must return 0 and that foreign keys reuse the referenced key's expression.

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?

Front-loaded with the purpose, then input contract, refusal rule, outputs, and limits in a logical order; nearly every clause carries information. It is dense to the point of being somewhat run-on, especially the trailing quota sentence, but nothing is truly expendable.

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?

For a single-input planning tool with no output schema, the description covers input format, rejected inputs, returned artifacts, their contractual guarantee, and scale limits. An agent has everything needed to invoke it correctly and to anticipate failure modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a single parameter, so baseline is 3; the description earns a step up by emphasizing the meaning that matters operationally — the input is DDL only and must not contain data, which is stricter than the schema's bare "without data." No further format or size details are added beyond that.

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 ("Plan how to mask personal data in a PostgreSQL schema") plus the concrete trigger ("before copying production to staging or dev") and concrete outputs (mask.sql, check.sql). An agent can distinguish this from a method-listing sibling purely from the scope described: this tool plans a per-column policy from schema DDL rather than enumerating methods.

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

Usage Guidelines4/5

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

Gives clear preconditions and input guidance: supply the schema only (pg_dump --schema-only or CREATE TABLE statements), and data dumps via COPY or many INSERT rows are explicitly refused. It stops short of naming the alternative sibling tool for method enumeration, so there is context but no explicit when-not-to-use-this routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources