Skip to main content
Glama
anatolykoptev

n8n MCP Agent

test-workflow

Test any n8n workflow by automatically detecting trigger type and applying the correct testing method with structured results and error diagnosis.

Instructions

Universal workflow testing tool. Automatically detects trigger type and uses appropriate testing method:

  • Webhook trigger → direct webhook call

  • Execute Sub-workflow Trigger → via Test Runner workflow

  • Manual/Schedule Trigger → use autoConvert:true to add Execute Sub-workflow Trigger

Returns structured response with execution results and AI-friendly diagnosis for errors. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoInput data to pass to the workflow (optional)
timeoutNoRequest timeout in ms (default: 60000)
clientIdYesClient ID from init-n8n
workflowIdYesWorkflow ID to test
autoConvertNoAdd Execute Sub-workflow Trigger to Manual/Schedule workflows (default: false)
testRunnerPathNoTest Runner webhook path (default: "test-runner")
Behavior5/5

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

Given no annotations, the description fully discloses behavior: automatic trigger detection, different testing mechanisms, return of structured results with AI-friendly error diagnosis, and a crucial formatting requirement (compact, single-line JSON).

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 concise with bullet points for different trigger methods. Every sentence adds value, and the important note about JSON format is prominently placed. No wasted words.

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

Completeness5/5

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

The description covers core functionality, parameter usage, return format, and special requirements. With no output schema, it explains return values. For a 6-parameter tool, it provides sufficient context for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by explaining the JSON formatting strictness, the purpose of 'autoConvert' for manual/schedule triggers, and the default for 'testRunnerPath', which goes beyond the schema's basic descriptions.

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 clearly states 'Universal workflow testing tool' and explains how it adapts to different trigger types (webhook, sub-workflow, manual/schedule). This distinguishes it from siblings like 'execute-webhook' and 'activate-workflow'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use each testing method based on trigger type. However, it does not directly contrast with alternatives like 'execute-webhook' or state when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anatolykoptev/n8n-mcp-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server