Sampling
Your MCP server's research tool has gathered a stack of Wikipedia articles. To turn that raw text into a polished summary it needs a language model — but you'd prefer the server not hold its own API key or pay for tokens.
What does sampling let your server do?
This exercise is part of the course
Model Context Protocol: Advanced Topics
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise