update_item
Update specific attributes of an existing DynamoDB item without replacing the whole item, using SET, REMOVE, ADD, or DELETE operations.
Instructions
Update specific attributes of an item in a DynamoDB table.
Modifies only the specified attributes without replacing the entire item. Supports SET, REMOVE, ADD, and DELETE operations in the update expression. Returns the updated item's attributes.
When to use:
To modify specific attributes of an existing item
To increment counters (SET count = count + :inc)
To add/remove elements from sets
To remove attributes from an item
When NOT to use:
To replace an entire item (use add_item instead)
To update many items at once (iterate with update_item or use bulk operations)
Returns: JSON with the updated item attributes.
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": "update_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |