Member-only story
Tool Calling in LLMs: AI Engineer Interview Cheat Sheet
AI Engineer Interview Preparation
Click here for the full AI Engineer Prep list. Read this blog free.
1. What is Tool Calling (Function Calling) in LLMs and how does it work?
Tool Calling (Function Calling) is a capability that allows an LLM to invoke external functions, APIs, or services to retrieve information or perform actions instead of relying only on its internal knowledge.
The LLM does not execute the function itself. It decides which tool to use and with what arguments. The application executes the tool and returns the result to the LLM, which then generates the final response.
Workflow
User Request
↓
LLM decides a tool is needed
↓
LLM generates tool name + arguments
↓
Application executes the tool
↓
Tool returns result
↓
LLM generates final responseExample: User asks:
“What’s the weather in Boston today?”
The LLM identifies that weather information is external and generates:
{
"tool": "get_weather",
"location": "Boston"
}







