instance-add
Registers a database instance with its login so an AI agent can manage it. Records server ID, engine, IP, site, and environment to enable health checks and SQL operations.
Instructions
dbabrain common.cli instance-add: An instance to register, with its login.
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):
server_id (required): Its name everywhere.
db_type (required): The engine.
ip (required): Its address.
site (required): Which site or company the machine belongs to. Required to register; a keep_default request writes no inventory field and carries none.
environment (required): Whether the machine is production, and how a person groups it. Required to register - a restore onto a target whose record states no environment is refused, and only the owner knows it; a keep_default request carries ...
port: Its port.
service_name: A label.
database_name: One database.
username: The login.
password: Its password - encrypted, never written.
password_ref: Or an existing secret.
credential_name: Which login in users.json; default: the instance's own.
role: What the login is for.
replace: Overwrite an existing server_id.
active: Registered switched on (default) or off.
keep_default: Add this login beside a registered server's default, which stays its default: no inventory field is written.
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": "instance-add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |