Skip to main content
JD Media
Back to glossaryArtificial Intelligence

Tool Calling

Capability of a language model to invoke defined external functions or APIs in a structured way to perform actions or fetch data.

Also known as: Function Calling, Tool Use

Tool calling describes the capability of a language model to invoke predefined external functions in a structured way instead of only producing text. The developer provides the model with a schema containing function names and expected parameters. Based on the user input, the model decides which function with which arguments makes sense and returns a structured call.

What the flow looks like

A typical flow starts with a user question the model cannot answer on its own, for example a current weather lookup. The model responds with a tool call that names the function and supplies JSON parameters. The surrounding application executes the actual call, against a weather API in this case, and passes the result back to the model. The model then turns that into a natural language answer.

Common use cases

Tool calling powers chat assistants that create calendar entries, search websites, update CRM records or read files. More advanced agent systems use the same pattern, registering many tools and letting the model decide autonomously which actions are needed in what order. Strict parameter validation and permission checks on the application side are essential.

In everyday marketing

Marketing applications for tool calling range from customer service chat bots that surface order information to internal assistants that generate reports from analytics data or pre fill a campaign template. Anyone using the concept should keep the tool list small, document every function cleanly and validate all actions server side before they are executed.