LLMOpsThe LLMOps lifecycle · MLflow 3 · FastAPI · Docker · AWS/Azure
Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
41 small wins to finish your pathNext lesson →

Giving the model tools

Tools are the functions an LLM can call to reach beyond its own text: a database, a web search, another system. The Model Context Protocol, MCP, is a standard way to expose those tools so one model can use many of them without custom wiring.

Last updated: 15 Oct, 2026 · LLMOps

Choosing an LLM: providers and model cards picked the model. On its own a model can only produce text; it cannot look something up or change anything. At the model-selection stage the Detailed LLMOps Project Lifecycle video notes that the next question is whether the model needs tools, and names MCP as one way to give it them.

How a tool call works

A tool is a function with a name and a description the model can read. The model does not run the function; it asks for it. The app sees the request, runs the tool, and hands the result back to the model to carry on. The video lists databases, web search and other third-party systems as the tools a model commonly reaches for.

  • You describe the tools to the model: each one's name, what it does, and the arguments it takes.
  • The model picks one and returns the call it wants, with arguments, instead of a plain answer.
  • Your code runs the tool and returns the result, which the model uses to produce its reply.
Three steps of a tool call, left to right. First you describe the tools, each with its name, what it does and its arguments. Second the model picks one and returns the call it wants with arguments instead of an answer. Third your code runs it and returns the result, which the model uses for its reply, with a dashed arrow carrying that result back to the model. A note records that every call adds a round trip, a cost and a line in the audit trail.

What MCP changes

Without a standard, every tool is wired to every app by hand. MCP is a protocol that puts a server in front of a set of tools, so any model or app that speaks MCP can discover and call them the same way. In the lifecycle video MCP is named as one of the options for connecting a model to outside systems.

  • Tools live behind a server, described once, instead of being re-wired into every app.
  • Any MCP client can use them, so the same tool server serves many agents.
  • The connection is uniform, which is what lets a tool be governed and swapped without touching each app.
A plain toolA tool over MCP
Where it is definedIn your app's codeBehind an MCP server
Who can call itThat one appAny MCP client
Adding a new toolWire it into the appRegister it on the server
Good forA single app with a few toolsMany agents sharing many tools
Two panels. On the left a plain tool is drawn inside your app's box, defined in that app's code and callable only by that one app. On the right the same tool sits behind an MCP server, described once, with three agents above it all pointing down at the same server, so it is registered once and callable by any MCP client.

The ops concerns with tools

Tools are the point where an LLM app can touch the real world, so they are where operational risk concentrates. The questions are less about the model and more about control.

  • Which tools are exposed. A model that can read is low risk; a model that can delete or pay is not, so dangerous tools need a gate, not trust in the prompt.
  • What the tools return. A tool result flows back into the model, so a poisoned or wrong result can steer the next step.
  • Cost and latency. Every tool call adds a round trip and, for a paid tool or model, a cost to watch.
  • An audit trail. Which tool ran, with which arguments, is what you need when something goes wrong in production.
Watch out. MCP widens what a model can reach, which widens what a prompt-injection attempt can reach through it. A tool server shared across agents is convenient and is also a single place where an over-broad permission affects everyone, so decide per tool what each agent may call and record every call.
Try it yourself
  • List the tools your assistant would need, and mark each one safe, costly or dangerous.
  • Build the tool-calling loop from the Tool calling lesson and watch the model request a tool rather than answer.
  • Read the Model Context Protocol specification's description of a tool and note what a server advertises about each one.

You understood something today that you didn't yesterday.