dynamodb_table_delete
Remove a DynamoDB table from AWS using the AWS MCP Server by specifying the table name. Enables efficient table management and cleanup through natural language commands.
Instructions
Delete a DynamoDB table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Name of the DynamoDB table |
Implementation Reference
- src/mcp_server_aws/server.py:199-201 (handler)The core handler logic that executes the DynamoDB table deletion using the boto3 client.elif name == "dynamodb_table_delete": response = dynamodb_client.delete_table( TableName=arguments["table_name"])
- src/mcp_server_aws/tools.py:163-176 (schema)Defines the input schema and metadata for the dynamodb_table_delete tool.Tool( name="dynamodb_table_delete", description="Delete a DynamoDB table", inputSchema={ "type": "object", "properties": { "table_name": { "type": "string", "description": "Name of the DynamoDB table" } }, "required": ["table_name"] } ),
- src/mcp_server_aws/server.py:136-140 (registration)Registers the dynamodb_table_delete tool by including it in the list of available tools 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()
- src/mcp_server_aws/server.py:358-361 (handler)Dispatches tool calls starting with 'dynamodb_' to the DynamoDB handler function.return await handle_s3_operations(aws, name, arguments) elif name.startswith("dynamodb_"): return await handle_dynamodb_operations(aws, name, arguments) else: