Skip to main content
Glama

N8n Get Workflow

n8n_get_workflow
Read-onlyIdempotent

Get one workflow's detail by id from your n8n instance, name, active state, node list (which integrations it uses), tags, timestamps. Get the id from n8n_list_workflows. Requires your instance_url + n8n API key (_apiKey).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_apiKey": "your-n8n-api-key",
      "workflow_id": "123",
      "instance_url": "https://n8n.example.com"
    },
    "name": "n8n_get_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyYesREQUIRED, your n8n API key (Settings -> n8n API -> Create an API key). Sent as the X-N8N-API-KEY header. No shared key exists for this pack.
workflow_idYesThe workflow id, from n8n_list_workflows.
instance_urlYesREQUIRED, your n8n instance base URL, e.g. "https://you.app.n8n.cloud" (n8n Cloud) or "https://n8n.example.com" (self-hosted). Must be a public https URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"REQUIRED — your n8n API key (Settings → n8n API → Create an API key). Sent as the X-N8N-API-KEY header. No shared key exists for this pack."New value: +"REQUIRED, your n8n API key (Settings -> n8n API -> Create an API key). Sent as the X-N8N-API-KEY header. No shared key exists for this pack."
    • changedInput schema / properties / instance_url / description
      Previous value: -"REQUIRED — your n8n instance base URL, e.g. \"https://you.app.n8n.cloud\" (n8n Cloud) or \"https://n8n.example.com\" (self-hosted). Must be a public https URL."New value: +"REQUIRED, your n8n instance base URL, e.g. \"https://you.app.n8n.cloud\" (n8n Cloud) or \"https://n8n.example.com\" (self-hosted). Must be a public https URL."
    • changedInput schema / properties / workflow_id / description
      Previous value: -"The workflow id — from n8n_list_workflows."New value: +"The workflow id, from n8n_list_workflows."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-n8n-api-key",
      +    "instance_url": "https://n8n.example.com",
      +    "workflow_id": "123"
      +  }
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the description only needs to add context — and it does: it discloses the per-call auth requirement (instance_url + personal n8n API key, no shared key) and what the payload contains. It omits failure behavior (invalid id, auth rejection, rate limits), which keeps it from a 5.

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 tight sentences, front-loaded with the action and scope, with the id-source hint placed where an agent will read it. The mid-sentence field enumeration is slightly run-on but each item conveys what comes back.

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?

For a simple read-only fetch with rich annotations, a fully described 3-parameter schema, and no output schema, the description covers the action, the scope, the id source, and the credential requirements. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, so all three parameters are already fully documented in the schema. The description's mentions of workflow_id, instance_url and _apiKey restate that structured information rather than adding new meaning, so the baseline 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?

States a specific verb and resource ('Get one workflow's detail by id') and enumerates the returned fields (name, active state, node list, tags, timestamps). The 'one workflow' framing cleanly separates it from the sibling n8n_list_workflows, which is named explicitly.

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?

Gives a clear entry path — obtain the id from n8n_list_workflows — plus the prerequisite credentials (instance_url and _apiKey). It does not state when NOT to use this tool or what to do if the id is stale/unknown, so it stops short of full alternative guidance.

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.