The agent works for the player.
If the player wants to maximize earnings that is what the agent looks to do. If the player wants long term security at an early stage of the process that is what the agent will do. If a player wants to play for team X for life, the agent tries to make that happen.
Schoop was a Boras client and he wanted to sign multi-year extension with the Tigers. He got one.