dynamodb_item_put
Add or update an item in a DynamoDB table by specifying the table name and item data.
Instructions
Put an item into a DynamoDB table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Name of the DynamoDB table | |
| item | Yes | Item data to put |
Implementation Reference
- src/mcp_server_aws/server.py:220-224 (handler)The core handler logic for the 'dynamodb_item_put' tool within the handle_dynamodb_operations function. It invokes the DynamoDB client's put_item method using the provided table_name and item arguments.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)The input schema definition for the 'dynamodb_item_put' tool, specifying required parameters: table_name (string) and item (object).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:135-140 (registration)The list_tools handler registration that returns the list of AWS tools from get_aws_tools(), which includes the 'dynamodb_item_put' tool with its schema.@server.list_tools() async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()