What are MCP's sampling and elicitation primitives for, and why does hardly anyone use them?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Both are client primitives: capabilities the host offers back to the server, inverting the usual direction of calls.
Full worked answer
Both are client primitives: capabilities the host offers back to the server, inverting the usual direction of calls.
Sampling lets a server ask the host to run an LLM completion on its behalf. The point is that the server author needs no API key, no model choice, no billing relationship. A server that wants to summarise a document it just fetched asks the host's model to do it. The host mediates, so it can show the user what is being requested, apply its own model policy, and refuse.
Elicitation lets a server ask the user for input mid-request, with a schema for the expected response. A booking server that discovers it needs a seat preference can ask, rather than failing or guessing. It exists because the alternative is servers stuffing every possible parameter into a tool schema and the model hallucinating values for them.
Why adoption is thin, which is the part that shows you have actually built something:
- Host support is optional and patchy. Both are capabilities the client must declare: in the
initializehandshake up to revision 2025-11-25, in per-request_metafrom 2026-07-28. Most hosts implement tools and stop. A server depending on sampling simply does not work in most clients, so authors avoid it and ship a hardcoded model client instead. Chicken and egg. - Sampling is a trust and cost inversion. The host pays for tokens a third-party server requested, on a prompt the host did not write. That is uncomfortable to implement and a plausible abuse vector, so hosts are slow to enable it.
- Elicitation broke the execution model. As first specified it meant suspending a tool call on a live connection, surfacing UI, and resuming. Any host treating tool execution as a synchronous function call had to restructure to support it. It also arrived after the original spec, so many hosts had already shipped without it.
What the 2026-07-28 revision did with them. Sampling is deprecated, with the guidance that servers call model APIs directly: the adoption verdict written into the spec. Elicitation survives, reworked for a protocol with no sessions. A server may only ask while it is handling a client request, and does so as a multi round-trip request: it returns an input-required result carrying its questions plus opaque request state, the client collects answers and re-issues the original call with the responses and that state echoed back, so any server instance can pick up the retry.
The practical takeaway: do not build a server that depends on sampling at all, and treat elicitation as optional. Check what the client declared and degrade gracefully, falling back to a tool argument when elicitation is unavailable.
What a good answer covers
- Both are client primitives
- Sampling lets a server ask the host to run an LLM completion on its behalf
- The point is that the server author needs no API key, no model choice, no billing relationship
- A server that wants to summarise a document it just fetched asks the host's model to do it
- The host mediates, so it can show the user what is being requested, apply its own model policy, and refuse
Key terms: client · Sampling · Elicitation · Elicitation broke the execution model
In the glossary: Elicitation · Tool call
Interviewer follow-ups to expect
You are writing a host. Would you enable sampling for third-party servers, and what controls would you put on it?
How does elicitation interact with prompt injection risk?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep