Skip to main content
Glama
StackBay MCP Server

StackBay MCP Server

Official
by spleyapp

audit_n8n_workflow_json

Read-onlyIdempotent

Audits exported n8n workflow JSON for CVEs, plaintext secrets, Denial-of-Wallet paths, and RCE nodes to reveal security and cost risks before deployment.

Instructions

Deterministic 100% read-only security & cost-bomb audit of an exported n8n workflow.json. Catches Dec 11 gpt-5/o3 model cutoff breakage, CVE-2026-21858 (Ni8mare) / CVE-2025-68613 / CVE-2026-1470 version exposure, plaintext API keys & DB URIs, unauthenticated Webhook->LLM Denial-of-Wallet paths, cyclic LLM loops, and ExecuteCommand/Code RCE nodes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_n8n_workflow_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
useDemoNoWhen true (or when workflow is omitted), scans the built-in vulnerable production n8n workflow demo.
workflowNoExported n8n workflow.json as an object or JSON string. Omit or set useDemo=true to audit the built-in vulnerable sample workflow.
n8nVersionNoOptional self-hosted n8n version string (e.g. '1.119.0' or '2.1.4') to evaluate CVE-2026-21858 / CVE-2025-68613 / CVE-2026-1470 exposure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, destructive=false and closed-world, and the description reinforces this with "Deterministic 100% read-only," whose key added value is signaling reproducible, non-mutating behavior. It also details the concrete check surface an agent would care about. It does not describe the report shape, severity model, or execution cost, which keeps it short of a 5.

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?

Two dense, front-loaded sentences with no filler; the core purpose and safety posture lead. The CVE identifier cluster is information-heavy but readable, though the second sentence is essentially a feature list that could be trimmed slightly without losing meaning.

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?

For a zero-required-parameter audit tool with full schema coverage and no output schema, the description supplies the scope, safety profile, and the classes of findings an agent should expect. The main omission is any hint about the returned report's structure or severity, which matters when no output schema exists.

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 the schema already fully documents useDemo, workflow, and n8nVersion including examples and the fallback behavior. The description adds no parameter-level detail beyond what the schema states, so the baseline 3 applies.

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?

Names a specific verb and resource ("security & cost-bomb audit of an exported n8n workflow.json") and enumerates the exact defect classes it detects (model cutoff breakage, three named CVEs, plaintext keys, Denial-of-Wallet webhook paths, cyclic loops, RCE nodes). Nothing about the object of the audit is left ambiguous, and the domain is clearly distinct from the TCO/resource siblings.

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 scope ("an exported n8n workflow.json") implies the situation in which to call it, but there is no explicit when-to-use/when-not statement and no routing to or away from alternatives. An agent can infer the trigger from "exported workflow.json" but gets no guidance on prerequisites or on what to do with the results.

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