Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by fedealvarez

upsert_data_table_row

Updates a data table row when filter conditions match; otherwise inserts a new row.

Instructions

Update a row if it matches filter conditions, or insert a new one if no match is found.

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>",
      "filter": "<filter>",
      "data": "<data>"
    },
    "name": "upsert_data_table_row"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesColumn values for the row
dryRunNoPreview changes without persisting (default false)
filterYesFilter object: {type:'and'|'or', filters:[{columnName,condition,value}]}
returnDataNoReturn the upserted row (default false)
dataTableIdYesData table ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It correctly discloses the core conditional write behavior and implies mutation, but leaves key questions open: what happens if multiple rows match the filter (update all, or the first?), whether unmatched columns are preserved on update, and what permissions are required. The disclosed behavior is accurate but thin for a destructive-capable write with zero annotation coverage.

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?

A single sentence with zero filler that front-loads the primary branch ('Update a row...') before the fallback ('or insert a new one'). Nothing is repeated from the schema or wasted.

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?

For a 5-parameter mutation tool with nested objects, no annotations, and no output schema, the description covers the essential semantics but omits the multi-match behavior and update merge semantics that an agent would need to call it safely. The dryRun and returnData safety features exist only in the schema and are not surfaced as guidance.

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 five parameters including dryRun and returnData are documented in the schema itself. The description's phrase 'matches filter conditions' loosely ties to the filter parameter but adds no syntax or constraint detail beyond the schema. Baseline 3 is appropriate.

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 behavior: 'Update a row if it matches filter conditions, or insert a new one if no match is found.' The conditional upsert semantics are unambiguous and an agent can tell this apart from a pure insert or pure update tool. It does not explicitly name the sibling tools it supersedes, which keeps it from 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?

The 'update-or-insert' framing implies when to use this tool (unknown whether the row exists), but there is no explicit guidance such as 'use insert_data_table_rows when you know the row is new' or 'use update_data_table_rows to modify by ID.' The choice is inferable from the description alone rather than stated.

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