The BBC recounts by means of interviews the experience of a few ambassadors in these matters.
"I was called by the foreign ministry and was told 'We need to see you immediately,'" Mr Casson [former UK ambassador to Egypt] tells the BBC. "The first thing they said was, 'We are not summoning you, but we are going to tell the press we are summoning you. If it had been a summoning, we would have sent a formal diplomatic note summoning you.'" This is the way things normally work in a summoning - a formal, polite, diplomatic note is sent to the relevant country's embassy asking - but not really demanding - its representative to attend a meeting at the foreign ministry, or its equivalent. The medium of the summoning is the message, Mr Casson says. "The main thing is that it is a piece of diplomatic theatre and everybody understands their role, and acts their role," Mr Casson, who was in Cairo between 2014 and 2018, says. In London, the drama can involve being made to wait in the grand surroundings of the Foreign and Commonwealth Office, to understand the seriousness of the occasion. [...] Mr Fujisaki, a former Japanese ambassador to the United Nations, also served as its representative in Washington between 2008 and 2012. In December 2009, he was summoned by US Secretary of State Hillary Clinton. This was notable for two reasons: this is not something the US state department does often, and Japan is a close ally of the US, so an unlikely subject of a summoning. The Washington Post reports Mrs Clinton was "blunt, if diplomatic" with Mr Fujisaki. [...] Although Mr Fujisaki was widely reported to have been summoned, he disputes the use of the word - and says no-one in the diplomatic service uses it. "A summoning sounds like you are obligated to be there, it's more legal," he says. "In this case, the government is asking you to be there, it's a request." Mr Fujisaki says the ambassador must speak to his home government so that they do not learn of the summoning through the media. The home government would then brief the ambassador on the most appropriate way to respond and what points they should make. Ambassadors can be summoned in inconvenient circumstances - as when Israel's foreign ministry called on 12 countries' representatives on 25 December 2016, when many were away for Christmas. So was making Mr Fujisaki travel across a city in a snowstorm a way of inconveniencing him, and reinforcing the state department's unhappiness? He says not. [...] Mr Bocka, the Albanian ambassador in Belgrade since 2014, is in an unusual position: he once refused a summoning by his host country. Four months into his ambassadorship, Albania's football team travelled to Serbia for a Euro 2016 qualifying match. About 40 minutes in, the match was stopped when a drone flew overhead carrying an Albanian nationalist flag. A brawl broke out, and the match was abandoned. Soon afterwards, Mr Bocka received a demarche from Serbia's foreign ministry - a polite request for him to attend, rather than an order. "This is the most common way diplomacy is done," Mr Bocka tells the BBC. "You are asked to go, normally to the director, and you have to hear what they have to say, and at the same time, you have the right to express your position." A year later, it was a different story. Before the return match in Albania's capital Tirana, the Serbian team bus was pelted with stones and a window was cracked. Cue the summoning, and a cranking-up of diplomatic pressure. "They asked me to go immediately to the foreign affairs ministry but I said no," Mr Bocka says. He did not feel the stoning of a bus merited his summoning. "I knew what had happened: nothing! It was 22:00, I said 'maybe tomorrow', but they wanted to have this story on the TV, so I said 'No, I'm not coming'. I told them I wouldn't play this game." Mr Bocka acknowledges how rare it is for an ambassador to reject a summoning by his host country, and the refusal was not without consequences. For several months afterwards, he was disinvited from foreign affairs ministry events, even while his staff continued to work unhindered. But he stayed in his job, and four years later, is on good terms with his hosts again. "Our relations were damaged for a moment," he says. "But now? It's OK."
TLDR: it's usually a fairly polite affair, but it can involve inconveniencing the ambassador on purpose.
Of course, if the ambassador turns out too unpleasant in the judgement of the host, they can be declared persona non-grata and get expelled etc. Although that tends to happen more because of statements to the press, or other deeds, rather than direct exchanges, IIRC. (And of course, if war breaks out or just relations get really bad short of war, the same can happen even if no breaches of protocol occur.)
Or if you prefer a more summarizing (but less exemplifying) take:
The ‘summoning’ of an ambassador is an age-old diplomatic tool. It means that the receiving State sends a note verbale to the relevant country’s embassy requesting the ambassador to attend a meeting at the foreign ministry usually to express displeasure over actions or a policy of the sending State. The modality of the meeting may vary. It has been said that ‘sometimes it can be a casual conversation in comfortable chairs. Other times, a formal encounter across a table. If the row is serious, it can even be what’s called “a meeting without coffee” when chairs are removed from the room, the ambassador is forced to remain standing, and a formal diplomatic reprimand is read out and handed over in text form, known in the trade as a “note verbale”.
Interestingly perhaps, in German practice, with whom the ambassador is summoned or invited to speak to, depends on the 'severity' of the matter:
In German practice, there are various degrees of summoning. At its most mild, the ambassador is requested to attend a meeting with the director or a representative of the relevant department in the Federal Foreign Office. To escalate things, the conversation is conducted by a State Secretary. If things are really serious, the ambassador may be hauled before the Federal Foreign Minister. For example, in October 2013, Federal Foreign Minister Guido Westerwelle summoned the US ambassador to Germany over allegations that the United States has been tapping Chancellor Angela Merkel’s mobile phone.
A related piece in the same venue adds a few more details (mostly) about the German practice:
The Vienna Convention on Diplomatic Relations does not contain any provisions on the summoning of ambassador. Summons is, however, a well-established practice of diplomatic relations. [...] Heads of mission are, as a rule, summoned to the Ministry for Foreign Affairs and not to other government departments, the chancellery, or prime minister’s office. Heads of mission are usually summoned at the behest of the Foreign Minister of the receiving State. In terms of diplomatic protocol, summons are extended by Deputy Foreign Ministers, State Secretaries, and the directors of Foreign Ministry departments. Being summoned is part of the functions of the head of a diplomatic mission. However, it is the sovereign decision of the sending State how the functions of a head of mission are exercised. There is no obligation under international law to comply with a summons, but failure to do so may prompt the receiving State to declare the head of mission persona non grata.
... continue reading