DynamoDB MCP Server

update_item

Updates specific attributes of an item in a table

Input Schema

NameRequiredDescriptionDefault
conditionExpressionNoCondition for update (optional)
expressionAttributeNamesYesAttribute name mappings
expressionAttributeValuesYesValues for the update expression
keyYesPrimary key of the item to update
returnValuesNoWhat values to return
tableNameYesName of the table
updateExpressionYesUpdate expression (e.g., 'SET #n = :name')

Input Schema (JSON Schema)

{ "properties": { "conditionExpression": { "description": "Condition for update (optional)", "type": "string" }, "expressionAttributeNames": { "description": "Attribute name mappings", "type": "object" }, "expressionAttributeValues": { "description": "Values for the update expression", "type": "object" }, "key": { "description": "Primary key of the item to update", "type": "object" }, "returnValues": { "description": "What values to return", "enum": [ "NONE", "ALL_OLD", "UPDATED_OLD", "ALL_NEW", "UPDATED_NEW" ], "type": "string" }, "tableName": { "description": "Name of the table", "type": "string" }, "updateExpression": { "description": "Update expression (e.g., 'SET #n = :name')", "type": "string" } }, "required": [ "tableName", "key", "updateExpression", "expressionAttributeNames", "expressionAttributeValues" ], "type": "object" }