Skip to main content
Glama
duynghien

n8n-custom-mcp

by duynghien

suggest_workflow_improvements

Analyze n8n workflows to uncover missing error handling, slow loops, hardcoded credentials, and missing triggers. Get actionable fixes for Set nodes, merge nodes, and more.

Instructions

Analyze workflow and suggest improvements. Identifies: missing Set nodes for data transformation, missing error handling, slow loops, hardcoded values that should use credentials, missing triggers, and opportunities for merge nodes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowYesWorkflow object to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the transparency burden. It does disclose meaningful behavioral detail by listing exactly which types of issues the tool identifies, and 'suggest' implies a non-mutating analysis. It stops short of stating the return format or explicitly confirming that the workflow is not modified, but for a suggestion tool this is adequate.

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?

The description is two compact sentences with the action front-loaded. The detailed list of improvement categories is dense and useful without filler, and every sentence earns its place.

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?

The tool is simple: one required workflow object, with the input schema already documenting the required structure. The description gives enough detail about what the analysis covers for an agent to invoke it correctly. The main gap is the lack of an explicit return shape, but the 'Identifies: ...' list partially fills that gap given there is no output schema.

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 coverage is 100%: the single workflow parameter is already described as 'Workflow object to analyze' and the nested schema defines required fields like name and nodes. The description adds no additional parameter-level meaning beyond what the schema already provides, so the baseline of 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?

The description states a specific action ('Analyze workflow and suggest improvements') and enumerates the concrete improvement categories it detects: missing Set nodes, error handling, slow loops, hardcoded values, triggers, and merge nodes. This clearly distinguishes it from sibling validation and linting tools, which check conformance rather than propose improvements.

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 intended use case is strongly implied: call this when the agent needs improvement suggestions for a workflow. However, the description never explicitly says when to prefer it over validate_workflow_structure, lint_workflow, or execute_workflow, and it does not state any exclusions or alternative conditions.

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