Route Tool Calls Through an LLM
Let a model decide which tool to invoke.
Let the Model Decide
So far you chose which tool to call. The real power comes when you hand the decision to an LLM, letting the model pick the right tool for a request.
The Bridge Pattern
Your client becomes a bridge: it discovers MCP tools, describes them to the model, and runs whatever tool the model asks for.
All lessons in this course
- Open a Client Session
- Discover Tools & Resources
- Invoke Tools from Code
- Route Tool Calls Through an LLM