Skip to main content
Glama

Redact PII from text

redact_text
Read-only

Remove personal data from text before sending it to a model or storing it. Detects names, contact details, government and financial identifiers, health identifiers and payment card data. Returns the redacted text and a count of what was removed, by type — never the removed values themselves. Detection runs on eleyed infrastructure; content is not passed to a third-party model and nothing is stored. Costs credits based on length.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to redact.
entitiesNoData types to detect, e.g. ["PERSON","EMAIL_ADDRESS"]. Omit to use all supported types. Call list_entity_types for the full set.
specific_termsNoExact strings to remove in addition to detected entities, matched case-insensitively. Use for names or references the detector cannot know about.
redaction_styleNoHow removed content is replaced. Defaults to a type label, e.g. <PERSON>.
score_thresholdNoMinimum detection confidence, 0-1. Lower finds more and risks false positives.
custom_replacement_textNoReplacement string when redaction_style is "custom".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that detection runs on the provider's infrastructure, that content is not sent to a third-party model, that nothing is stored, and that the tool costs credits based on length. It also clarifies the safety-critical behavior that removed values are never returned, only a count by type.

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 tightly packed sentences, front-loaded with purpose and followed by detection scope, return shape, privacy guarantees, and cost. Every sentence earns its place with zero filler.

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?

Although there is no output schema, the description explains the return value (redacted text plus a count by type) and covers privacy, cost, and detection scope. Nothing material an agent needs to invoke the tool correctly is missing.

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 the schema already documents all six parameters, including entity types, threshold, and redaction style. The description adds no parameter-level detail beyond what the schema provides, making the baseline 3 appropriate.

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 (Remove) and resource (personal data from text), and enumerates the detection scope: names, contact details, government/financial identifiers, health identifiers and payment card data. The only sibling, list_entity_types, is a clearly different listing tool, so disambiguation is not needed.

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?

Gives clear situational context — use it 'before sending it to a model or storing it' — which tells the agent when the tool is appropriate. It does not name alternatives or state when not to use it, but no meaningful alternative exists among the siblings.

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