Skip to main content
Glama

Caelara Labs Agent Safety

pii_redactor

Redact emails, phones, SSNs, cards (Luhn), IPs, API keys and JWTs. Use when you need to remove emails, phone numbers, card numbers and similar personal data from text before logging or sending it on. Example input: {"text":"Reach me at jo@example.com"}. Returns: redacted, findings, total.

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

Input Schema

NameRequiredDescriptionDefault
textYesText to redact

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses detection coverage, the Luhn check for card numbers, an example input, and the return fields 'redacted', 'findings', and 'total', though it does not specify the redaction placeholder format or the structure of findings.

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 tight sentences: capability list first, then usage context, then example and return fields. Every sentence contributes useful information with no filler.

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 one-parameter text-redaction tool with no output schema, the description covers purpose, usage context, detection categories, example input, and return field names. The remaining gap is that it does not explain the content or structure of 'findings' or the exact redaction output format.

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?

The sole parameter is already fully described in the schema as 'Text to redact', and schema coverage is 100%. The description adds an example using the parameter but does not add constraints such as length limits, encoding expectations, or empty-input behavior.

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?

Uses the specific verb 'Redact' and enumerates covered PII classes such as emails, phones, SSNs, cards with Luhn validation, IPs, API keys, and JWTs. The scope is clear and does not overlap with sibling tools that scan, validate, chunk, or compress content.

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?

Explicitly states the use case: removing personal data from text before logging or sending it on. It does not name when-not-to-use cases or sibling alternatives, but the context for use is clear.

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