agree to
phr. v..phr. v.. to say yes to a suggestion, plan, or request made by someone else.
phr. v.. to give formal or informal consent to a proposal, condition, or course of action.
They finally agree to the new contract.
After hours of negotiation, the manager agreed to give the staff a small pay rise.
The committee refused to agree to the proposed amendments until further environmental impact studies were conducted by independent experts.
followed by a noun or an infinitive verb; implies a response to an external proposal.
contrast 'agree to' (accepting a proposal) with 'agree with' (sharing an opinion or being compatible with something).
I agree to your opinion.I agree with your opinion.use 'with' for shared opinions and 'to' for accepting requests or plans.