authorize
Request explicit confirmation for a database change or removal by supplying the operation, target, and reason; credentials remain in DBA Brain's encrypted store and never reach the caller.
Instructions
dbabrain common.cli authorize: A confirmation asked for on its own, for a caller that does the work itself.
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):
operation (required): The operation being authorised.
target_id: What it will act on - the id typed back at level 100.
target_label: How that target is shown.
effects: What it will do, shown first.
confirm: The payload declares the operator agreed.
confirm_target: The second answer, when the operation costs two: the target's own id, typed back.
assume_yes: Unattended: take the typed yes as given.
authorized_by: Who approved it, for example {"channel": "telegram"}.
reason: Why, for the evidence.
rules: What the operation costs to confirm: {level, confirmations, challenge, effects} - the node's own emergency_operations.json entry for it. Absent, the ladder the package ships prices it; malformed, it is refused rather ...
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": "authorize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |