100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Tool Use, Function Calling & MCP
30 minadvanced

Why Models Need Tools at All

A large language model is, at its core, a function that maps text to text. Ask it what the temperature is right now in Bengaluru, what today's date is, or whether a specific flight still has seats, and it cannot know any of those things—not because it is poorly trained, but because none of them are facts. They are the current state of the world, and the model has no channel to the world at all. It has no clock, no network socket, no database connection, and its training data stops at a fixed cutoff date, after which nothing has reached it. Every one of its 'facts' is a static compression of text it saw during training, not a live observation.

Tool use is the mechanism that closes this gap. Rather than asking the model to guess, hallucinate, or refuse, you give it a catalogue of capabilities it is allowed to invoke: look up the weather, query a database, read a file, call an internal API. The model does not gain hands, a clock, or a network connection by being given tools—what changes is that it can now say, in a structured and checkable way, exactly what it wants done, and your code decides whether to do it. This lesson is about that boundary: what a model can never do on its own, and the precise shape of the request it hands off to you instead.

This distinction is not a technicality. It is the entire safety and reliability model of every tool-enabled system you will build in this course. Every guardrail you add, every permission you check, every retry you write lives in the space between the model asking and your code acting. Get comfortable with that boundary now, because the rest of the course—defining tools well, running the execution loop, and standardizing it all with MCP—is built entirely on top of it.

Analogy🏏Cricket
🏏 Think of it like cricket: Picture a commentator sitting in the broadcast box at the Wankhede Stadium, watching the match unfold. He knows the sport intimately—every rule, every match India has played in the past decade, the full arc of Sachin Tendulkar's centuries. But he cannot walk onto the pitch. He cannot check today's actual pitch report, cannot call the physio to ask whether Bumrah's back spasm has cleared, cannot see the toss that happened five minutes ago because his broadcast feed has not caught up yet. If a viewer asks him who won the toss today, he genuinely does not know—his knowledge froze the moment his prep notes were written, and nothing since then has reached him. What actually gets things done is the production crew: someone runs onto the field with a mic, someone checks the live scoreboard feed, someone calls the curator directly and reports back. The commentator's real skill is knowing precisely what to ask for—'get me the toss result,' 'check if Bumrah is fit to bowl'—and then reasoning well over whatever comes back. He is extraordinarily well-informed and completely unable to act. A language model is that commentator: fluent, knowledgeable, frozen at a training cutoff, with no hands anywhere near the pitch. Tools are the production crew it can ask to go check, and the model's job is only ever to ask well.
Lesson 1 of 35
0% complete