Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by fedealvarez

insert_data_table_rows

Insert one or more rows into a specified n8n data table, with options to return the row count, inserted IDs, or full row data.

Instructions

Insert one or more rows into a data table.

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": {
      "dataTableId": "<dataTableId>",
      "data": "<data>"
    },
    "name": "insert_data_table_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesArray of row objects with column names as keys
returnTypeNoWhat to return: 'count' (default), 'id' (array of IDs), or 'all' (full row data)
dataTableIdYesData table ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and largely drops it: it never says how duplicates are handled (error vs. upsert), whether a multi-row insert is atomic or can partially succeed, or what permissions are needed. The only behavioral hint, that multiple rows may be inserted in one call, is already implied by the schema's array parameter.

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?

A single front-loaded sentence with no filler or redundancy. Brevity is efficient, but it edges toward under-specification for a mutation tool rather than being optimally sized.

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

Completeness2/5

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

This is a write operation with no annotations and no output schema, yet the description never addresses failure modes, duplicate-key behavior, or the effect of the returnType option, which the schema only enumerates. For a data-mutating tool whose safety profile is undeclared, more disclosure is needed.

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%, with data, dataTableId, and returnType all documented in the schema, so the baseline is 3. The description adds only the batch-size cue ("one or more"), not any meaning about key matching, returnType behavior, or ID semantics beyond what the schema states.

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 (Insert) and resource (rows into a data table) and signals batch behavior with "one or more rows." It does not differentiate from the sibling upsert_data_table_row, so an agent cannot tell from the description alone which of the two write paths to pick.

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

Usage Guidelines2/5

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

No guidance on when to use this instead of upsert_data_table_row or update_data_table_rows, and no mention of prerequisites such as the table existing or required permissions. Usage must be inferred entirely from the name.

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