3.2 · Lesson

Advanced MCP Features

The MCP Python SDK offers two advanced features for building more sophisticated servers: Sampling and Completions.

Sampling allows your tools to call the Go to glossary for large language model (opens in a new tab)A model trained on text to predict the next token, and so to generate language. during execution. Instead of just returning data from the database, a tool can ask the LLM that powers the Agent to transform, explain, or enhance that data.