n8n_run_audit
Run a security audit on n8n to identify risks in credentials, database, nodes, filesystem, and instance settings. Returns categorized reports with recommendations.
Instructions
Generate n8n's built-in security audit via POST /audit. Returns one risk report per requested category: credentials (unused/abandoned), database (SQL injection-prone expressions), nodes (community/unofficial nodes), filesystem (host fs access), instance (insecure server settings). Each report has risk, sections (with title/description/recommendation/location). Read-only — n8n only inspects, never mutates. Requires the API user to be an instance admin or owner.
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": "n8n_run_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categories | No | Restrict the audit to specific risk categories. Omit for all five. | |
| includeDetails | No | Return full per-finding `location` arrays (credential ids/names, node ids). Default false: locations stripped from audit body, only counts surfaced. | |
| daysAbandonedWorkflow | No | Days a workflow must go unexecuted to count as abandoned in the credentials report. n8n default is 90. |