dynamodb_item_put
Insert or update an item in a DynamoDB table by specifying the table name and item data, enabling efficient data management within AWS infrastructure.
Instructions
Put an item into a DynamoDB table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item data to put | |
| table_name | Yes | Name of the DynamoDB table |
Implementation Reference
- src/mcp_server_aws/server.py:220-224 (handler)Executes the DynamoDB put_item operation directly using the boto3 dynamodb_client with the provided table_name and item.elif name == "dynamodb_item_put": response = dynamodb_client.put_item( TableName=arguments["table_name"], Item=arguments["item"] )
- src/mcp_server_aws/tools.py:195-212 (schema)Defines the tool schema including input validation for table_name and item parameters.Tool( name="dynamodb_item_put", description="Put an item into a DynamoDB table", inputSchema={ "type": "object", "properties": { "table_name": { "type": "string", "description": "Name of the DynamoDB table" }, "item": { "type": "object", "description": "Item data to put" } }, "required": ["table_name", "item"] } ),
- src/mcp_server_aws/server.py:136-139 (registration)Registers the list_tools handler which returns all AWS tools, including dynamodb_item_put via get_aws_tools().async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()