Skip to main content
Glama

redline_redact

Scans JSONL prompt-response logs for common secrets and personally identifiable information, then redacts matches to create a safe output file or performs a scan-only check.

Instructions

Scan or redact common secrets and PII from JSONL prompt-response logs.

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": {
      "log_path": "<log_path>"
    },
    "name": "redline_redact"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory where redline should run.
outNoRedacted JSONL output path. Required unless check is true.
jsonNoPrint machine-readable JSON.
checkNoScan only; do not write a redacted file.
configNoConfig path to read.
log_pathYesJSONL prompt-response log to scan or redact.
placeholderNoReplacement text for redacted values.
max_output_bytesNoMaximum stdout/stderr bytes returned to the MCP client.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure and falls well short: it does not say whether an existing file at 'out' is overwritten, what happens by default (scan vs write), whether credentials or permissions are needed, or how large logs are handled. Stating the read/write duality is the sole behavioral signal it provides.

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?

A single front-loaded sentence with zero filler, which is appropriate for a CLI-backed utility. It is slightly under-specified rather than over-long, so conciseness itself is not the problem.

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?

This is an eight-parameter tool that can write files and has no annotations and no output schema, so the description should explain mode behavior and write side effects; it explains neither. The agent can invoke it from the schema alone but cannot predict its behavior confidently.

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 eight parameters already carry inline documentation including the conditional requirement that 'out' is needed unless 'check' is true. The description adds no meaning beyond the schema — it does not mention the placeholder text, config file, or output-byte cap.

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 pair ('scan or redact') and a specific resource ('common secrets and PII from JSONL prompt-response logs'), so the agent knows exactly what domain the tool operates on. It does not distinguish this from plausible siblings such as redline_quick_check or redline_audit, which is the only thing keeping it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance on when to use this versus the nearby check-flavored siblings (redline_quick_check, redline_audit), and it does not explain when to choose scan mode over redact mode even though it explicitly offers both. The caller must infer the mode split entirely from the schema's 'check' property.

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