delete_records
Delete records from a specified table using a WHERE clause to target exact rows, requiring a table name and condition to prevent full-table deletion.
Instructions
Delete records from a table matching a WHERE clause (Delete).
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>",
"where_clause": "<where_clause>"
},
"name": "delete_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Positional parameter values for the WHERE clause placeholders. | |
| table_name | Yes | Target table name. | |
| schema_name | No | Target schema name (default: 'dbo'). | dbo |
| where_clause | Yes | SQL WHERE clause expression (required to avoid accidental full table deletion). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||