Skip to main content
Glama
tcs-n8n-mcp
by ntatschner

get_workflow

Read-onlyIdempotent

Fetch an n8n workflow using its opaque ID; raw untrusted fields require explicit opt-in.

Instructions

Get an n8n workflow by opaque ID. Raw fields are untrusted external data and require explicit opt-in.

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": {
      "workflowId": "<workflowId>"
    },
    "name": "get_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowIdYesOpaque n8n resource ID
includeRawDataNo
excludePinnedDataNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuinely useful context the annotations don't: raw fields are untrusted external data and require opt-in. It says nothing about the default suppression of pinned data.

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?

Two short sentences, front-loaded with the operation and followed by the one security caveat that matters. No filler or restated metadata.

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

Completeness3/5

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

With an output schema present, return values need no explanation, and the security note covers the biggest hazard. However, for a 3-parameter tool with low schema coverage, the silent excludePinnedData parameter is a real gap the description should close.

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 only 33%, so the description carries some burden. It clarifies that workflowId is opaque and explains the opt-in semantics of includeRawData, but leaves excludePinnedData (defaulting to true) entirely unexplained in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get an n8n workflow') scoped to a single item by 'opaque ID', which distinguishes it from list_workflows and the mutation siblings. It stops short of naming any alternative, so it doesn't fully earn a 5.

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?

Usage is only implied: 'by opaque ID' signals a single-record fetch, and the second sentence implies that raw fields should only be requested deliberately. There is no explicit when-to-use or when-not-to-use guidance relative to list_workflows or get_execution.

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