Lesser Planar Binding Spell
D&D Description of the Lesser Planar Binding Spell : Casting this spell attempts a dangerous act: to lure a creature from another plane to a specifically prepared trap, which must lie within the spell's range. The called creature is held in the trap until it agrees to perform one service in return for its freedom.
To create the trap, you must use a magic circle spell, focused inward. The kind of creature to be bound must be known and stated. If you wish to call a specific individual, you must use that individual's proper name in casting the spell.
Deeper info on this Dungeons & Dragons Lesser Planar Binding Spell