Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by r-ms

n8n_get_node_params

Retrieve exact TypeScript parameter names, types, and structures for n8n nodes before writing workflow definitions, preventing guessed parameter names and invalid node configurations.

Instructions

Get TypeScript type definitions for n8n node parameters. Returns exact parameter names, types, and structures. MUST be called before writing workflow node definitions — prevents guessing parameter names. Include discriminators from search results if available.

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": {
      "nodeId": "<nodeId>"
    },
    "name": "n8n_get_node_params"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesNode type ID (e.g. 'n8n-nodes-base.mongoDb', 'n8n-nodes-base.code')
resourceNoResource discriminator from search results (e.g. 'message')
operationNoOperation discriminator from search results (e.g. 'send')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full load, and it does disclose that this is a retrieval returning type/structure data and that it has a mandatory ordering constraint relative to workflow authoring. It does not cover failure behavior for an unknown nodeId or output size/pagination for large nodes, 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the purpose, then the return shape, then the action constraint. No redundant or filler wording.

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 simple 3-parameter read tool with no annotations and no output schema, the description covers what it returns, when it must be called, and how to supply optional discriminators. Only edge-case behavior (invalid nodeId, large payloads) is left undefined.

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 the baseline is 3; the description earns above that by explaining where the optional resource and operation discriminators come from ('from search results if available'), which the schema alone does not convey. It does not add format or conditional-requirement detail beyond that.

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 TypeScript type definitions for n8n node parameters') plus the return payload ('exact parameter names, types, and structures'). It is clearly distinguishable from siblings like n8n_search_nodes, since this retrieves a node's parameter contract rather than discovering nodes.

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 strong, explicit precondition — 'MUST be called before writing workflow node definitions — prevents guessing parameter names' — and points at search results as the source of discriminator values. It stops short of stating when-not to use it or naming a specific alternative tool, but the usage context is unambiguous.

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