Skip to main content
Glama

afr_scrub_opsec

Read-onlyIdempotent

Scan payloads to redact OS user paths, LAN/CGNAT IPs, wildcard binds, and high-entropy secrets, reducing OPSEC exposure before logs or sessions are shared.

Instructions

Scan and redact OS user paths, LAN/CGNAT IPs, wildcard binds, and high-entropy secrets.

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": {
      "payload": "<payload>"
    },
    "name": "afr_scrub_opsec"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnly=true, destructive=false, and idempotent=true, so the safety profile is covered. The description adds the detection categories but says nothing about what redaction does to matched content, whether findings are reported alongside the scrubbed result, or how 'wildcard binds' are treated. There is mild tension between 'redact' and readOnlyHint, but this is consistent with a transform that returns a scrubbed copy rather than mutating a store, so it is not a contradiction.

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?

A single sentence, front-loaded with the action and then the target list. Nothing is padded and no clause is redundant.

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?

The tool takes an opaque nested object and has no output schema, so the description carries the burden of explaining both input shape and result form. It explains neither: an agent cannot tell whether the response is a redacted payload, a diff, or a findings list, which is a significant gap for a transformation tool.

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?

There is a single required 'payload' parameter declared as an untyped nested object with 0% schema description coverage, so the schema contributes essentially nothing. The description does not explain the expected shape of payload (raw text, config file contents, cassette body), nor which fields are eligible for redaction, so it fails to compensate for the coverage gap.

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?

The description pairs a concrete verb pair ('Scan and redact') with a specific, enumerable set of targets: OS user paths, LAN/CGNAT IPs, wildcard binds, and high-entropy secrets. That is enough for an agent to know exactly what the tool detects and removes. It does not explicitly state how it differs from siblings such as afr_verify_cassette or afr_replay_diff, which keeps it at 4 rather than 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?

There is no statement of when to call this tool, when not to, or which sibling to choose instead. The name and target list imply a pre-share/pre-publish sanitization step for cassettes, but that workflow is left entirely to inference.

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