Skip to main content
Glama
pii-filter

pii-filter

by bratislava

redact_text

Redacts PII and secrets from text, routes detected data through a human review workflow, and returns approved redacted text or a withheld notice.

Instructions

Redact PII/secrets from text. Blocks until the user approves the redaction in the review UI (instant when nothing is detected). Returns the approved redacted text or a withheld notice.

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": "redact_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
contextNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/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 does well: it states the call blocks on user approval, notes the fast path when nothing is detected, and describes the two possible outcomes (redacted text or withheld notice). It does not mention timeout, cancellation, or what happens if the user rejects, which keeps it short of a 5.

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?

Three short sentences, front-loaded with the purpose, then the blocking/approval behavior, then the return contract. No redundant or filler wording; every clause adds information an agent would act on.

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

Completeness4/5

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

For a simple two-parameter tool with an output schema already covering the return shape, the description supplies the critical non-obvious facts: that the call blocks on human approval and may return a withheld notice instead of text. The only material gap is the unexplained optional "context" parameter.

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%, and the description names neither parameter. The required "text" is inferable from the prose, but the optional "context" parameter — likely meaningful for steering detection — is left completely unexplained in both schema and description.

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 opens with a specific verb and resource: "Redact PII/secrets from text," which immediately tells an agent what the tool produces. It does not explicitly contrast itself with the siblings redact_file or scan_pii, though "from text" implicitly bounds it to string input rather than whole files.

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 only implied: the word "text" hints this is for inline strings rather than files, and the mention of a review UI implies a human-in-the-loop workflow. There is no explicit when-to-use/when-not statement and no named alternative for scanning without redacting.

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

Deploy Server

Other Tools