Library maintenance
library_maintenanceRun maintenance operations: check library integrity, backup metadata to OPF files, embed metadata into book files, or vacuum the database.
Instructions
Run Calibre library maintenance operations: check integrity, backup metadata to OPF files, embed metadata into book files, or vacuum the database. Some operations modify files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "library_maintenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookIds | No | Comma-separated book IDs for embed_metadata. If not provided, processes all books. | |
| operation | Yes | Maintenance operation: 'check' (verify library integrity), 'backup_metadata' (save to OPF files), 'embed_metadata' (write metadata into book files), 'vacuum' (compact database). | |
| onlyMissingCovers | No | For embed_metadata: only process books without embedded covers. |