Skip to main content
Glama
Diogenes Agent Guardrails & Command Sandbox MCP

Diogenes Agent Guardrails & Command Sandbox MCP

tool_output_firewall

Sanitizes untrusted tool outputs by stripping invisible Unicode tags, markdown exfiltration beacons, and indirect prompt injections before agent use.

Instructions

Sanitizes untrusted tool outputs, stripping invisible Unicode tags (U+E0000), markdown exfiltration beacons, and indirect prompt injections.

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": {
      "raw_tool_output": "<raw_tool_output>"
    },
    "name": "tool_output_firewall"
  }
}

Input Schema

NameRequiredDescriptionDefault
raw_tool_outputYes
source_tool_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does add concrete behavior: it strips invisible Unicode tags, markdown exfiltration beacons, and indirect prompt injections. However, it does not clarify whether it returns sanitized text, blocks on detection, preserves the original, or has side effects, which matters for a security sanitizer.

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 front-loaded sentence with no wasted words. The core action and the specific sanitization targets are both stated immediately.

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

Completeness3/5

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

The description gives enough to understand the tool's purpose, but with no annotations, no output schema, and 0% schema description coverage, it should also explain parameter meaning and return/blocking behavior. It is adequate but leaves important operational details unspecified.

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 description coverage is 0%, so the description must compensate for both parameters. It vaguely implies the required input is a tool output, but never explains raw_tool_output or source_tool_name semantics.

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?

States a specific verb and resource: sanitizes untrusted tool outputs. It also names the exact threat classes removed, which distinguishes it from sibling security tools like scrub_pii_firewall and sql_injection_ast_guard.

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?

The phrase 'untrusted tool outputs' implies when the tool is relevant, but it does not explicitly say when to use it instead of siblings like guardrail_verify or scrub_pii_firewall. No exclusions or routing guidance are provided.

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