Skip to main content
Glama

Redactic

Mask personal data in a text

mask_text

Masks supplied plain text using optional detection settings, names, and values to keep. Detected data such as names and contact details is replaced with labels such as ⟦PERSON_1⟧. Returns masked_text, counts by type, detection mode, and the number of input characters. Masking is one way. The limit is 100,000 characters per call or the workspace limit if lower. Successful calls consume workspace quota or credits. Per-minute request limits depend on the workspace and apply per connection.

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": {
      "text": "<text>"
    },
    "name": "mask_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNoUp to 500 values to leave unchanged.
textYesNonblank plain text to mask.
namesNoUp to 500 names to mask.
regionsNoCountry codes for detection, such as IT or DE. The default is automatic country detection.
languageNoLanguage code hint such as it or en.
detection_modeNoDetection mode, either accurate (the default) or fast.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / detection_mode / description
      Previous value: -"accurate (the default) or fast."New value: +"Detection mode, either accurate (the default) or fast."
    • changedInput schema / properties / keep / description
      Previous value: -"Values that must never be masked."New value: +"Up to 500 values to leave unchanged."
    • changedInput schema / properties / language / description
      Previous value: -"Language hint, for example it or en."New value: +"Language code hint such as it or en."
    • changedInput schema / properties / names / description
      Previous value: -"Names that must always be masked."New value: +"Up to 500 names to mask."
    • changedInput schema / properties / regions / description
      Previous value: -"Country codes of the text, for example IT or DE. Without them Redactic detects the country."New value: +"Country codes for detection, such as IT or DE. The default is automatic country detection."
    • changedInput schema / properties / text / description
      Previous value: -"The text to mask."New value: +"Nonblank plain text to mask."
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations it discloses the irreversibility of masking ('Masking is one way'), the per-call size ceiling with workspace override, that successful calls consume quota or credits, and that per-minute limits vary by workspace and apply per connection. Those cost, limit and reversibility facts are exactly what an agent needs before invoking a metered operation, and they do not conflict with the declared hints.

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?

Purpose is front-loaded in the first sentence, followed by return shape, reversibility, and then limits and cost in descending order of importance. It is dense but nearly every clause carries operational value; only the closing rate-limit sentence is slightly vague ('depend on the workspace').

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?

With no output schema, the description correctly enumerates the return payload (masked_text, counts by type, detection mode, input character count). Combined with the size cap, cost note and irreversibility warning, an agent has everything needed to call this correctly.

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 every parameter is already documented in the schema, including the accurate/fast enum and the 500-item caps. The description only restates the parameter categories ('detection settings, names, and values to keep') without adding format, default or interaction semantics, so the baseline of 3 applies.

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 opening sentence names a specific verb and resource ('Masks supplied plain text') and scopes it with the optional controls (detection settings, names, values to keep). It does not explicitly contrast with siblings like check_hidden_data, but the purpose is unambiguous from the text alone.

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 rather than stated: it is clear the tool operates on caller-supplied plain text, and the 100,000-character cap implies a boundary. There is no explicit when-to-use/when-not-to-use guidance and no routing to alternatives such as check_hidden_data for pre-checks.

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