dynamodb_table_update
Modify DynamoDB table configurations to adjust attribute definitions and update table properties for AWS database management.
Instructions
Update a DynamoDB table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Name of the DynamoDB table | |
| attribute_definitions | Yes | Updated attribute definitions |
Implementation Reference
- src/mcp_server_aws/server.py:202-207 (handler)Executes the dynamodb_table_update tool by calling boto3's update_table with the provided table name and attribute definitions.elif name == "dynamodb_table_update": update_params = { "TableName": arguments["table_name"], "AttributeDefinitions": arguments["attribute_definitions"] } response = dynamodb_client.update_table(**update_params)
- src/mcp_server_aws/tools.py:177-194 (schema)Defines the input schema for the dynamodb_table_update tool, requiring table_name and attribute_definitions.Tool( name="dynamodb_table_update", description="Update a DynamoDB table", inputSchema={ "type": "object", "properties": { "table_name": { "type": "string", "description": "Name of the DynamoDB table" }, "attribute_definitions": { "type": "array", "description": "Updated attribute definitions" } }, "required": ["table_name", "attribute_definitions"] } ),
- src/mcp_server_aws/server.py:136-140 (registration)Registers the dynamodb_table_update tool (among others) with the MCP server by including it in the list returned from get_aws_tools().async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()