Model Context Protocol — Intermediate
Sampling: when a server needs the model's help
Most of the protocol describes a client calling into a server. Sampling runs the relationship the other direction: a server, in the middle of handling a request, can ask the connecting client to run a model completion on its behalf — useful when a server needs some LLM reasoning as part of its own work but shouldn't need its own separate API key and model access configured independently.
This capability is explicitly opt-in and host-controlled: a host can choose not to support sampling requests at all, or route them through its own approval and rate-limiting logic, since a server freely generating model calls through the client it's connected to is still consuming real resources and real model access on the host's behalf.
Composing multiple servers behind one host
A host rarely connects to just one server in practice. A coding assistant host might run a filesystem server, a version-control server, and a documentation-search server simultaneously, each exposing its own tools under its own namespace. The model sees a combined set of available tools across every connected server, and the host — not the model — is responsible for which servers are connected in the first place.
This composability is exactly what makes narrow, single-purpose servers practical instead of a liability — a task needing both file access and git history doesn't need one server built to do both; it connects to two narrow servers and gets both capabilities combined.
Error handling: a tool call failing is not the same as a protocol failure
A tool call can fail for a mundane, expected reason — a search returning no results, invalid input the model supplied, a downstream system being temporarily unavailable. MCP distinguishes this from a protocol-level error (malformed request, unsupported capability): a tool execution error comes back as a normal result the model can read and reason about ("no tickets matched that query"), rather than breaking the connection the way a protocol violation would.
Designing a tool's error responses as useful, readable text — not just a raw stack trace or an opaque failure code — measurably changes whether the model recovers gracefully (tries a different query, asks the user for clarification) or gets stuck repeating the same failing call.
Governance across many servers in one organization
As an organization connects more MCP servers across more hosts, the real question shifts from "does this one server work" to "what is the combined set of capabilities exposed to any given host, across every server it's connected to." Two independently reasonable servers — one that reads customer records, one that sends outbound messages — can combine into a capability nobody explicitly reviewed: reading sensitive data and transmitting it externally, even though each server passed its own review in isolation.
A central registry of which servers exist, what each one exposes, and which hosts are allowed to connect to which servers is what makes this reviewable at all — without it, the actual combined capability surface across an organization's hosts is effectively undocumented.
Versioning and backward compatibility
A server upgrading its own implementation can add new tools, deprecate old ones, or change a tool's input schema — any of which can break a client built against an earlier version's assumptions. The capability negotiation at connection time is what gives a client a chance to detect this (an expected tool is simply missing from what the server now reports) rather than discovering it only when a call unexpectedly fails.

