dynamodb_item_update
Update specific item data in a DynamoDB table by providing the table name, key, and updated item details. Part of the AWS MCP Server for managing DynamoDB operations.
Instructions
Update an item in a DynamoDB table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Updated item data | |
| key | Yes | Key to identify the item | |
| table_name | Yes | Name of the DynamoDB table |
Implementation Reference
- src/mcp_server_aws/server.py:235-240 (handler)Executes the dynamodb_item_update tool by calling boto3 dynamodb_client.update_item with the provided table_name, key, and AttributeUpdates from the item argument.) elif name == "dynamodb_item_delete": response = dynamodb_client.delete_item( TableName=arguments["table_name"], Key=arguments["key"] )
- src/mcp_server_aws/tools.py:231-252 (schema)Defines the Tool object for dynamodb_item_update, including its name, description, and inputSchema requiring table_name (string), key (object), and item (object).Tool( name="dynamodb_item_update", description="Update an item in a DynamoDB table", inputSchema={ "type": "object", "properties": { "table_name": { "type": "string", "description": "Name of the DynamoDB table" }, "key": { "type": "object", "description": "Key to identify the item" }, "item": { "type": "object", "description": "Updated item data" } }, "required": ["table_name", "key", "item"] } ),
- src/mcp_server_aws/server.py:136-140 (registration)Registers the dynamodb_item_update tool (among other AWS tools) by returning get_aws_tools() from the list_tools handler, which includes get_dynamodb_tools() containing the tool definition.async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()