Skip to main content
Glama

redaction

Redact personal details

redact
Read-onlyIdempotent

Replace the people in a piece of text — names, emails, phone numbers, addresses, card and account numbers — with plausible stand-ins, before the text is sent to a model or a third party. Returns the redacted text and a map. Keep the map: it is the only way to put the real values back, and it is not stored anywhere.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to redact.
allowNoTerms to leave as written — a shared mailbox, a product name a detector mistakes for a person.
strictNoRefuse rather than proceed when the name check cannot run. Use for records rather than one person's messages.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
mapYesStand-in to real value. Needed by restore, and stored nowhere else.
textYesThe text with stand-ins in place of the real values.
redactedYesHow many values were replaced.
names_decidedYesWhether the name check reached a decision. False means it could not run, not that no names were found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and idempotentHint. The description adds valuable context beyond annotations: the returned map is not stored anywhere and is the sole means to reverse redaction. This informs the agent about a critical non-obvious behavior. No contradictions found.

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?

The description is only two sentences, but both are packed with essential information: the purpose and the map's non-persistence. It is front-loaded with the action and resource, then delivers the critical behavioral warning. No wasted words.

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?

The tool is simple (3 params, 1 required, no nested objects) and has an output schema, so the description need not explain return values in detail. It already states it returns redacted text and a map, gives the use case, and warns about map storage. For an agent to call it correctly, nothing essential 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%, meaning all parameters are already well-documented in the schema. The description does not add any additional parameter-level meaning beyond what the schema provides. According to the rubric, with high coverage, a baseline of 3 is appropriate, and no extra value is contributed here.

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?

The description clearly states the verb 'Replace', the resource 'people in a piece of text', and enumerates specific types (names, emails, phone numbers, etc.). It also provides the context of use ('before the text is sent to a model or a third party') and distinguishes itself from the sibling 'restore' by implying the inverse operation. This is a precise, unambiguous purpose.

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?

The description gives a clear when-to-use context (before sending text to a model or third party) and hints at the complementary sibling by stating 'Keep the map: it is the only way to put the real values back', which implies restore is for reversal. However, it does not explicitly name the alternative or state when not to use this tool, so it stops short of a perfect 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.

Resources