insert_data
Add a new record to a database table by specifying the table name, optional schema, and column values.
Instructions
Insert a single row into a table. Args: ctx: The context of the tool call. table_name: The name of the table to insert the data into. values: The values to insert into the table. table_schema: The schema of the table to insert the data into.
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": {
"table_name": "<table_name>",
"values": "<values>"
},
"name": "insert_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | ||
| values | Yes | ||
| table_schema | No | SQLUser |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |