WASHINGTON — The Trump administration ordered Russia on Thursday to close its consulate in San Francisco and two diplomatic annexes, in New York and Washington, in a carefully calculated riposte to Russia’s order that the United States cut its diplomatic staff in Russia.

The tit-for-tat move, which Secretary of State Rex W. Tillerson conveyed to Russia’s foreign minister, Sergey V. Lavrov, in a morning phone call, bore all of the hallmarks of a Cold War-era grudge match. But the administration seemed eager to contain the fallout, casting the move as a straightforward return to diplomatic parity between the countries rather than the latest volley in an increasingly combative relationship.

“In the spirit of parity invoked by the Russians,” the State Department’s spokeswoman, Heather Nauert, said in a statement, the United States would require Russia to close the three offices by Saturday.

Russia’s reaction was similarly measured. The Foreign Ministry said that Mr. Lavrov “expressed regret at the escalation of tension in bilateral relations” and said that the Russian government would study the move before deciding how to respond. Russia’s new ambassador to the United States, who arrived Thursday in Washington to be greeted by the news, was quoted by a state news agency as saying Moscow would respond without “hysterical outbursts.”