Skip to main content
tool callingfunction callingtool useLLMAI agentsMCP

What Is Tool Calling (Function Calling)?

Tool calling is the mechanism by which a large language model can invoke an external function, API, or service to complete a task. Rather than answering only from what it learned in training, the model generates a structured request, typically JSON, that names a tool and supplies its arguments. The application executes that tool and feeds the result back to the model. Tool calling is what turns a text generator into something that can fetch live data and act on real systems.

It matters because the most useful enterprise AI tasks need information the model does not have: a current account balance, a customer's order history, the result of a calculation. Instead of hallucinating an answer, a model with tool calling passes the request to the right tool, a database query, a weather API, a calculator, and incorporates the real result into its response.

TL;DR

Tool calling (also called function calling) lets an LLM emit a structured request, usually JSON, to invoke an external function or API. The model decides which tool to call and with what arguments, but it does not execute the tool; the application runs it and returns the result for the model to use. It is the foundation of AI agents. The Model Context Protocol (MCP) standardizes how tools and context are exposed to any model, so they do not have to be wired up per application. Tools are only as trustworthy as the data behind them. Dawiso exposes governed catalog, glossary, and lineage as context any MCP-compatible agent can call.

What Tool Calling Means

In a tool-calling setup, the model is given a prompt alongside a predefined set of tools, each described with a name, a purpose, its arguments, and the shape of its expected output. The model reads the prompt and decides whether reaching for a tool is necessary to fulfill the request. If it is, the model does not run anything itself. It produces a structured object identifying the tool and the parameters to use, and hands that back to the application to execute.

How It Works

The loop is straightforward and iterative:

  • Describe the tools. The application tells the model which tools exist and how to call them.
  • The model decides. Given a request, the model determines whether a tool is needed, picks the right one, and assembles the arguments into structured JSON.
  • The application executes. Critically, the model does not execute the function. The application runs the tool, calls the API, queries the database, and captures the result.
  • The result feeds back. The output is returned to the model, which incorporates it into its final response, or calls another tool, creating a dynamic, multi-step problem-solving loop.

That separation, the model proposes, the application executes, is what makes tool calling governable: every action passes through code you control.

Tool Calling vs. Function Calling

The two terms describe the same capability. Function calling is the name OpenAI popularized for letting a model interface with external systems; the broader community increasingly says tool calling because a "tool" can be any external capability, not just a code function. Some providers use "tool use." For practical purposes, treat them as synonyms: a model emitting a structured request for an external capability that the application then runs.

Tool Calling and Agents

Tool calling is the building block of AI agents. An agent is, in large part, a loop of tool calls: the model assesses a goal, calls a tool, reads the result, and decides the next step until the task is done. Without tool calling, a model can only talk; with it, the model can search, retrieve, compute, and act. That power is also why AI agent governance matters: each tool call is a point where an agent touches real data or systems and must stay within policy.

Tool Calling vs. MCP

Tool calling and the Model Context Protocol are complementary, not competing. Tool calling is the mechanism: the model emits a structured request and the application executes it. MCP is the open standard for how tools and context are exposed to a model in the first place, so a tool wired up once is available to any MCP-compatible model or agent, rather than being re-integrated for every application. Function calling makes a model able to call a tool; MCP makes the enterprise's tools and governed context discoverable and reusable across all of them.

The Tool-Calling Loop THE TOOL-CALLING LOOP Modelpicks a tool +arguments (JSON) 1. structured call Applicationexecutes the tool(model never runs it) 2. run tool TOOLS & GOVERNED CONTEXTdatabases, APIs, catalog, glossary, lineageexposed via the Model Context Protocol (MCP) 3. result
Click to enlarge

How Dawiso Fits

Tool calling makes a model able to reach your systems, but the value of any tool depends on the data behind it. A tool that queries the wrong table, or returns numbers an agent cannot interpret, produces a confident wrong answer just as surely as a hallucination would. Dawiso turns the data an agent can call into governed, trustworthy context:

  • Governed context as a callable resource. The data catalog and business glossary expose what terms, metrics, and datasets mean, so a tool call resolves to the right, authoritative data.
  • Trust signals on every answer. Lineage and classification travel with the context, so an agent knows where data came from and how sensitive it is before acting on it.
  • Available to any MCP-compatible agent. The Context Layer serves this governed context through the open MCP Server, so it is callable across agents and applications without bespoke integration.

Tool calling is the mechanism; Dawiso makes sure the tools resolve to data your agents can trust.

Conclusion

Tool calling, or function calling, is the mechanism that lets an LLM emit a structured request to invoke an external function or API, with the application executing the tool and feeding the result back. It is the foundation of agents and the reason AI can fetch live data and act rather than only generate text. MCP standardizes how those tools and context are exposed so they are reusable across models. The remaining question is whether the data behind each tool is trustworthy, which is exactly the governed context a context layer provides.

See it in action

MCP (Model Context Protocol)

Connect agents and LLMs directly to your enterprise data and business knowledge.