table_sql_execute
Execute a DML SQL statement (INSERT, UPDATE, DELETE) against the workspace data tables.
The query runs inside the workspace's PostgreSQL schema. Parameters use $1, $2, etc. placeholders. Returns the number of affected rows.
Fields are "query" and "params" (a JSON string). Example: {"query":"INSERT INTO invoices (id, status) VALUES ($1, $2)","params":"["a1","open"]"} Use ON CONFLICT only on a column with a unique rule; table_schema shows the unique columns.
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": {
"query": "<query>"
},
"name": "table_sql_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL DML statement to execute | |
| params | No | JSON array of parameter values for $1, $2, etc. placeholders |