Skip to main content
Glama

PII detection and redaction: emails, phones, cards, IBANs

text_pii
Read-only

Find personal data in a text and get it back redacted: emails, phone numbers, card numbers (Luhn-checked), IBANs (mod-97), US SSNs, IP and crypto wallet addresses, each with its position, plus the text with every hit replaced by a label such as [EMAIL]. Hits are shown masked. Up to 20,000 characters; names and street addresses are not detected. Use before logging, storing or sending text to a model. Example: text=Contact Anna at anna.berg@example.com or +46 70 123 45 67; card 4111 1111 1111 1111.. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
textYesThe text to scan (up to 20,000 characters)
typesNoOptional comma-separated types to look for: email, iban, credit_card, us_ssn, crypto_address, ip_address, phone (default all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavioral context beyond annotations: cost model ('$0.01/call via x402 USDC or a card key, first 25 free; failed calls free'), repeat-call charging ('each call is charged, so repeats are not free'), output masking ('hits are shown masked'), and input limit ('up to 20,000 characters'). These details complement the readOnlyHint and openWorldHint annotations without contradicting them.

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-loads the core purpose and detection capabilities, then adds practical details. It is dense but mostly earns its space; the pricing sentence is slightly tangential to the scanning purpose but relevant for cost-aware agents.

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?

Given the tool's complexity, two parameters, no output schema, and annotation coverage, the description is complete. It explains output shape ('each with its position, plus the text with every hit replaced by a label such as [EMAIL]'), input limits, detection scope, masking, and cost/auth requirements.

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?

With 100% schema description coverage, the schema already defines both parameters. The description adds an illustrative example ('text=Contact Anna at anna.berg@example.com...') and restates the detectable types, giving useful usage context even though it largely mirrors the schema's 'types' description.

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 ('Find personal data... and get it back redacted') and enumerates the detected entity types (emails, phones, Luhn-checked cards, IBANs, SSNs, IPs, crypto addresses), clearly distinguishing this text-scanning/redaction tool from sibling tools like text_prompt_injection.

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?

Provides clear when-to-use guidance: 'Use before logging, storing or sending text to a model.' Also states a key limitation ('names and street addresses are not detected'). No explicit alternatives or when-not-to-use conditions are named, keeping this just below a 5.

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.