sql-command-add
Adds a SQL task with its display name, database type, and script or inline SQL so DBAs can define and run controlled database operations.
Instructions
dbabrain common.cli sql-command-add: A SQL task's WHAT: its name and its script.
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
display_name (required): What a person reads.
db_type (required): sqlserver | oracle | postgresql.
sql_id: The id; the next free one when absent.
sql_code: Its code.
script_type: single | array | folder.
script_path: The script.
script_paths: array: the scripts.
final_script_paths: Run once at the end.
sql_text: Or the SQL itself.
version_from: Oldest product version.
version_to: Newest product version.
parameters: Its parameters.
autocommit: Commit each statement.
progress_per_file: Report each file.
input_type: What input it takes.
input: That input's settings.
active: Switched on.
note: Why it exists.
replace: Overwrite this sql_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sql-command-add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |