Skip to main content
Glama

preflight_redact

Redact API keys, tokens, private keys, and email addresses from logs or prompts before sharing them. Use it to prevent accidental exposure of sensitive data.

Instructions

Redact API keys, tokens, private keys, and email addresses before sharing logs or prompts.

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": "preflight_redact"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description bears the full disclosure burden. It says which patterns are matched but not what redaction actually does: whether matches are replaced with placeholders or removed, whether the original text is preserved anywhere, whether output is lossy or reversible, and whether anything is logged or sent off-box during processing.

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?

One sentence, front-loaded with the verb and the target set, with the use context trailing. No filler, no redundancy, and nothing an agent must read twice.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter tool this is close to adequate, but with no annotations and no output schema the description still leaves the return value undefined — whether the agent receives redacted text, a match count, or a findings structure is unknown. For a tool whose output feeds directly into sharing decisions, that gap is material.

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?

There is a single required parameter, "text", whose meaning is largely self-evident, and the description adds context by naming the intended inputs (logs, prompts). However, with 0% schema description coverage and no output schema, it never confirms that the parameter is raw content rather than a file path — a distinction that matters given the sibling preflight_scan_path.

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?

Uses a specific verb ("Redact") plus an explicit enumeration of the target entity types (API keys, tokens, private keys, email addresses), which makes the operation unambiguous. It does not explicitly differentiate itself from the sibling preflight_scan_text, which likely detects the same entity classes without altering them, so the name/verb does the distinguishing work.

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?

"before sharing logs or prompts" gives a clear trigger context for when to call it, which is implicit usage guidance. It stops short of naming preflight_scan_text as the non-mutating alternative or stating any exclusions (e.g., binary content, or when you only want a report rather than a rewritten payload).

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