bulk_add_items
Add multiple items to a DynamoDB table using efficient batch writes, with automatic batching and retry handling for data loading or migration.
Instructions
Add multiple items to a DynamoDB table in efficient batches.
Uses batch_writer which automatically handles batching (25 items per batch), retries on unprocessed items, and flushing. Items with the same primary key will overwrite existing items.
When to use:
To add many items at once (more efficient than repeated add_item calls)
For data loading or migration scenarios
When NOT to use:
For a single item (use add_item instead)
When you need conditional writes (batch_writer doesn't support conditions)
Returns: JSON confirmation with the count of items added.
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": {
"input": "<input>"
},
"name": "bulk_add_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |