dynamodb_item_delete
Delete specific items from AWS DynamoDB tables by specifying table name and key identifiers to manage database content.
Instructions
Delete an item from a DynamoDB table
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>",
"key": "<key>"
},
"name": "dynamodb_item_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Name of the DynamoDB table | |
| key | Yes | Key to identify the item |
Implementation Reference
- src/mcp_server_aws/server.py:236-240 (handler)The handler function within handle_dynamodb_operations that executes the DynamoDB delete_item operation using the provided table_name and key.
elif name == "dynamodb_item_delete": response = dynamodb_client.delete_item( TableName=arguments["table_name"], Key=arguments["key"] ) - src/mcp_server_aws/tools.py:253-270 (schema)Defines the Tool object including name, description, and input schema requiring table_name (string) and key (object).
Tool( name="dynamodb_item_delete", description="Delete an item from 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" } }, "required": ["table_name", "key"] } ), - src/mcp_server_aws/server.py:135-140 (registration)Registers all AWS tools, including dynamodb_item_delete, by returning get_aws_tools() which aggregates S3 and DynamoDB tools.
@server.list_tools() async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()