pg_insert
Insert one or more rows into a PostgreSQL table and return the inserted rows.
Instructions
Insert one or more rows into a table. Returns inserted rows.
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": {
"target": "<target>",
"table": "<table>",
"columns": "<columns>",
"values": "<values>"
},
"name": "pg_insert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| schema | No | Schema name (default: 'public') | |
| target | Yes | Target name from ~/.dbx/targets/ | |
| values | Yes | JSON array of values to insert (matches column order) | |
| columns | Yes | JSON array of column names |