Skip to main content
Glama

Validate a workflow

validate_workflow
Read-only
Check an n8n workflow JSON against Gydmation's real node schemas:
connections (no orphaned nodes), credential structure, node-type
casing and AI-node requirements (an Agent needs a language model).
Applies safe deterministic fixes without any AI call. Returns the
checked (and repaired) workflowJSON, ready to paste into n8n.

Args:
    workflow_json: The complete n8n workflow JSON.

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": {
      "workflow_json": "<workflow_json>"
    },
    "name": "validate_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflow_jsonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds real behavioral value: it is deterministic, makes no AI call, and returns the checked-and-repaired workflow ready to paste. The only mild gap is that it doesn't explicitly say whether repairs are persisted or only applied to the returned copy.

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 front-loaded sentences state what is checked before the return behavior, followed by a short Args note. Every sentence carries information; only the Args block is slightly redundant with the parameter name.

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 one-parameter tool with no output schema and full annotation coverage, the description covers what it validates, that it is deterministic, and what it returns. Minor missing detail on the shape of the input object and whether fixes are persisted keeps it below 5.

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?

With a single nested object parameter at 0% schema coverage, the description only says 'The complete n8n workflow JSON.' That conveys the key constraint (must be complete, not partial) but gives no detail on expected structure such as nodes/connections keys, which matters for a free-form nested object.

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 (validate/check) and resource (n8n workflow JSON) and immediately enumerates the checks performed: connections/orphaned nodes, credential structure, node-type casing, AI-node requirements. That level of specificity separates it from generic siblings like autofix_workflow or self_heal_workflow, even without naming them.

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 line 'Applies safe deterministic fixes without any AI call' implies this is the non-AI alternative to the repair-oriented siblings, but no sibling is named and there is no explicit when-to-use/when-not guidance. The agent must infer the routing from the phrase alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.