create-table-from-xlsx
Loads an XLSX or CSV file into a new database table, with options to insert rows, set text width, and replace or fail if the table exists.
Instructions
dbabrain common.cli create-table-from-xlsx: A spreadsheet or CSV loaded into a new table.
server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password.
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):
target: The machine or instance: a server_id, or
<db_type> <ip>[:port].credential_name: Which login in users.json; default: the instance's own.
sql_access: How to reach the SQL engine, overriding the instance's block.
database_name: One database.
schema: The schema.
table_name: The table; generated when absent.
file_path: The file here.
file_base64: Or its bytes.
delimiter: csv: the delimiter.
if_exists: fail | replace.
load_rows: Insert the rows, not just create the table.
max_rows: At most this many rows.
text_length: The width of every text column.
timeout_seconds: How long to wait.
connection: The database login, complete: db_type, host, port, username, password - and, where they apply, database, instance_name, service_name, sqlserver_driver, sqlserver_tls_verify and sql_access (the 8i bridge); server_id an...
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": "create-table-from-xlsx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |