Michael Mornard confirmed that Gary was a big fan of at least one Clark Ashton Smith story, The Seven Geases, from which he took the spell. Tom Moldvay, who wrote X2, added CAS to his reading list for the original "Red Box" Basic.
Other books Gary might have included:
Pratchett, Terry...