Skip to main content
Glama

redact_text

Read-only

Redact personal data in text and return the redacted output plus detected entities by type, position, and placeholder, without returning original values.

Instructions

Redact personal data in a text and return the redacted text plus the detected entities (type, position, placeholder). Original values are not returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo"label" replaces with [TYPE_n] placeholders, "mask" with asterisks.label
textYesText to redact.
typesNoOnly these types; default all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true. The description adds valuable behavioral context beyond that: it discloses the return shape (redacted text plus detected entities) and explicitly states that original values are not returned, which is important privacy and safety information.

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?

Two tightly written sentences with zero waste. The purpose and output behavior are front-loaded, and every clause earns its place.

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 annotations, 100% schema coverage, and lack of an output schema, the description is complete enough for correct invocation. It explains what is returned and what is not returned, covering the most important behavioral gap for this tool.

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 all three parameters are already documented, including the enum behavior for 'mode' and the type filtering for 'types'. The description adds no parameter-level detail beyond what the schema provides, so baseline 3 is 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 ('Redact') and resource ('personal data in a text'), and distinguishes itself from the sibling redact_file by scoping to text input. The return contents are also previewed, so an agent knows what it will get.

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 implied by 'in a text' versus the sibling redact_file, but the description never explicitly says when to choose this tool over alternatives or when not to use it. No exclusions or routing guidance are provided.

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