bulk_operations
Applies many writes to one collection in a single call by combining creates, updates and deletes in order. Use it instead of repeated single-item calls when row counts are high, with optional schema validation.
Instructions
Applies many writes to one collection in a single call: creates, updates and deletes together. Prefer it to repeated create_item or update_item calls when the row count is high; use import_data for a CSV or JSON file and delete_items when deleting by query rather than by id. Not a transaction: the phases run in order (create, update, delete) and a failure partway leaves earlier writes committed, so the result reports what succeeded per phase. validate: true checks the payload against the collection schema before anything is written. This tool writes data and has nothing to do with analyze_relationships, which only inspects the data model.
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": {
"collection": "<collection>",
"operations": "<operations>"
},
"name": "bulk_operations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| validate | No | Validate operations before execution | |
| collection | Yes | Collection name | |
| operations | Yes | The writes to apply, grouped by phase. Phases run in order: create, then update, then delete. Omit a phase to skip it. |