Tool Use, Function Calling and MCP Explained

AI explained: Tool use, function calling and MCP. Turning chat into action.

On its own, a language model only produces text. Tools let it do things: search, calculate, read a file, call an API or update a calendar.

How Tool Use Works

  1. You describe the available tools to the model: name, purpose and inputs.
  2. The model decides whether a tool is needed and produces a structured request ("call get_weather with city = Leeds").
  3. Your software runs the tool and returns the result.
  4. The model uses the result in its answer or decides what to do next.

This is often called function calling or tool calling. The model doesn't run anything itself. Your code does.

What Tools Enable

The Standardisation Problem

Every app and tool used to need custom connections. Model Context Protocol (MCP) is an open approach for connecting AI applications to tools and data in a consistent way, like a common plug. A tool provider can offer an MCP "server", and compatible AI apps can use it.

Risks

Safe Practice

  1. Grant the minimum access and prefer read-only first.
  2. Require approval for irreversible actions.
  3. Use trusted tools, and review what they can do.
  4. Log tool calls.
  5. Treat tool outputs as data, not instructions.

Takeaway

Tools turn chat into action. Standards like MCP make connections easier, which makes careful permissions even more important.

Call us