Skip to main content
Glama

redact_pii

Detect and redact personal data and secrets from any payload before transmission, storage, or logging. Returns a redacted version and audit findings for compliance.

Instructions

Detect personal data and secrets in a PAYLOAD before it is sent, stored, or logged.

Use before an agent transmits text outside a trust boundary. Flags PII (names, emails, IDs, financial, device/IP) and secrets (API keys, passwords, tokens). Returns: verdict (clean | contains_pii | contains_secret | review), severity, findings, and a redacted version of the payload. (Maps to OWASP ASI guidance on sensitive-data leakage — produces an audit artifact.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNo
payloadYes
Behavior4/5

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

The description discloses the return structure (verdict, severity, findings, redacted payload) and mentions producing an audit artifact. With no annotations, it carries the burden well, though it does not specify authorization needs or logging behavior.

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 concise with three sentences plus a parenthetical, each adding value. It front-loads the purpose and usage, then details returns and references, without extraneous text.

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?

For a tool with two parameters and no output schema, the description covers purpose, usage, return values, and a reference. It lacks explanation of the context parameter, which is a minor gap, but overall is reasonably complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate. It explains 'payload' as the target content, but the optional 'context' parameter is not described at all, leaving the agent uncertain about its purpose or expected format.

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 tool detects personal data and secrets in a payload, listing specific categories (PII, secrets) and providing a use case (before transmitting outside trust boundary). It differentiates from siblings like detect_injection by focusing on sensitive-data leakage.

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 explicitly advises using the tool before transmitting text outside a trust boundary, providing clear context. It does not explicitly exclude scenarios or name alternatives, but the purpose is distinct enough among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/meloliva14/verity-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server