I can't really visualize the situation here, but:
Many years back I found a short plug socket that has a wrench hex on it. Has come in handy many times. Has a hollow center.
Another approach is a box wrench with the right bend.
Can you use 5/8-hex spark plugs ?