Skip to main content
Glama

Redact

redact
Read-only

Replaces personal data in a text with placeholders: e-mail addresses, phone numbers, IBANs (mod 97 checked), payment card numbers (Luhn checked only), IPv4 addresses and, with names true, person names found by the chat model. Returns the redacted text and counts per type. Original values are never returned. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
textYesText, up to 20,000 characters
namesNotrue to also replace person names (uses the chat model)
typesNoAny of email, phone, iban, card, ip (default all)

Output Schema

NameRequiredDescriptionDefault
textNo
countsNo
sourceNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare readOnlyHint and openWorldHint, so safety is partly covered, yet the description adds real value beyond them: that originals are never returned, that names use the chat model (nondeterministic), that card detection relies on Luhn only (weaker, more false positives), and the per-call pricing/billing model including that failed calls are free.

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 core operation and the enumerated types, then caveats, then pricing. Every sentence carries information, though the pricing sentence is long and could be trimmed without loss.

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?

With an output schema present, return values need not be detailed, yet the description still summarizes them ('redacted text and counts per type'). Coverage of types, caveats, cost, and data-handling guarantees is strong; only explicit when-to-use guidance is absent.

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% and the schema already documents the names flag, the type enum, and the default-all behavior. The description largely restates these; the 'Luhn checked only' and 'mod 97 checked' caveats add marginal semantic depth but don't materially extend parameter meaning.

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 (replaces) and resource (personal data in text), then enumerates the exact entity types handled. An agent immediately knows this is a PII-anonymization tool and can distinguish it from siblings like extract or entities.

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?

The description implies usage through the conditional 'with names true' clause, but never states when to prefer this over alternatives (e.g. entities or extract) or any preconditions. Usage is inferable but not guided.

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