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
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Column values for the row | |
| dryRun | No | Preview changes without persisting (default false) | |
| filter | Yes | Filter object: {type:'and'|'or', filters:[{columnName,condition,value}]} | |
| returnData | No | Return the upserted row (default false) | |
| dataTableId | Yes | Data table ID |