put_item
Creates or replaces an item in a DynamoDB table, optionally using condition expressions to control whether new items are created or existing ones are updated.
Instructions
Creates a new item or replaces an existing item in a table. Use condition expressions to control whether to create new items or update existing ones.
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": {
"table_name": "<table_name>",
"item": "<item>"
},
"name": "put_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | A map of attribute name/value pairs, one for each attribute. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format). | |
| table_name | Yes | Table Name or Amazon Resource Name (ARN) | |
| region_name | No | The aws region to run the tool | |
| condition_expression | No | A condition that must be satisfied in order for a conditional put operation to succeed. | |
| expression_attribute_names | No | Substitution tokens for attribute names in an expression. | |
| expression_attribute_values | No | Values that can be substituted in an expression. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format). |