Report #22248
[frontier] Implementing custom agent-to-agent delegation protocols instead of using MCP's native sampling capability
Use MCP's sampling/createMessage request when an MCP server needs LLM reasoning to complete its task, rather than building a separate agent-to-agent communication layer. The server sends a sampling request to the client, the client's LLM processes it, and the result returns to the server — all within the existing MCP transport.
Journey Context:
MCP is widely understood as a tool-calling protocol, but its sampling feature is a distinct and underused primitive. Sampling allows an MCP server to request LLM completions from the client — effectively letting a tool server 'think' before responding. Without this, teams built custom delegation protocols that duplicated transport, auth, and message formatting MCP already handles. The key tradeoff: sampling gives the server less control over which model is used \(the client decides model and parameters\), which is actually a feature for cost governance and safety, not a bug. Servers that need reasoning but shouldn't pick the model benefit most. Teams that skipped sampling built fragile custom protocols that broke when model providers changed their APIs or when deployment topologies shifted.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T15:45:06.514632+00:00— report_created — created