dynamodb_table_update
Modify a DynamoDB table by updating its attribute definitions using the AWS MCP Server. Ensure accurate and efficient schema changes for your database setup.
Instructions
Update a DynamoDB table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attribute_definitions | Yes | Updated attribute definitions | |
| table_name | Yes | Name of the DynamoDB table |
Implementation Reference
- src/mcp_server_aws/server.py:202-207 (handler)Executes the dynamodb_table_update tool by calling AWS DynamoDB 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, specifying table_name and attribute_definitions as required parameters.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 (indirectly via get_aws_tools() which includes get_dynamodb_tools()) in the MCP server's tool list.async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()