entry-remove
Remove one matching record from a DBA Brain data JSON list, with a safe preview by default and deletion only when apply is true.
Instructions
dbabrain common.cli entry-remove: One record of a data/*.json list to remove, found by its fields; a plan unless apply.
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):
data_dir: The data/ folder the record is removed from.
file (required): The data/*.json file name.
match (required): The record's fields; exactly one record must match. Its own key (backup_id, restore_id, id, name, ...) is its name; a record told only by a field pointing elsewhere names nothing.
apply: true removes the record; absent or false answers the plan and writes nothing.
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": "entry-remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |