Skip to main content
Glama

privacy_redact

Read-only

Remove sensitive values from text before logging, filing issues, or committing code, using placeholder, masked, asterisk, category, hash, or removal styles.

Instructions

Remove sensitive values from text. Use before writing something to a log, an issue, a commit message, or any other place a secret should not end up. Styles: placeholder, masked, asterisk, category, hash, remove.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "privacy_redact"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
styleNoplaceholder

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.17.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered; nothing in the description contradicts redaction being a local transform. The description adds the style vocabulary and the pre-write usage pattern, but leaves key behavior unstated: whether secrets are auto-detected or only known patterns are removed, and whether the original text is returned unmodified anywhere.

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?

Three short sentences, front-loaded with the action, then usage, then options. Only the closing clause ('or any other place a secret should not end up') is arguably filler, and it is brief enough to earn its place.

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?

The tool is simple (two params) and an output schema exists, so return values need not be explained. Given that, the description covers action, timing and style choices adequately; the main residual gap is how detection works and what each style output looks like.

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?

Schema description coverage is 0% and the 'style' property has no enum in the schema, so the description's list of valid values (placeholder, masked, asterisk, category, hash, remove) is genuinely load-bearing. It falls short of a 5 because it never explains how the styles differ, leaving 'masked' vs 'asterisk' vs 'category' ambiguous to the agent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Remove sensitive values from text.' This is clearly distinct from scanning-oriented siblings such as privacy_scan_code or privacy_check_trace, though the description never explicitly contrasts itself with them.

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 concrete when-to-use contexts (logs, issues, commit messages, any place a secret should not end up), which is strong situational guidance. It does not name an alternative tool or state when not to use it, so it stops short of a 5.

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