OpenAI API: Function Calling
15mIntermediate2026-02-11
Authors

Morten Rand-Hendriksen
Senior Staff Instructor, Speaker, Web Designer, and Software Developer
Course details
Tools and function calling unlock the potential of AI apps by letting the apps run software and perform tasks. In this course, explore how tools work in the OpenAI Responses API and how to choose the right approach for the capability you need. You integrate built-in tools such as web browsing, then add new behavior with custom functions that let your app take real actions and return structured results. You can also extend your app beyond a single environment by connecting it to local and hosted Model Context Protocol (MCP) servers, enabling your AI to access the services and resources you want—without hardwiring every integration directly into your app.
Learning objectives
Define tools and function calling and explain how they work in the OpenAI Responses API.
Integrate built-in tools (such as web browsing) into an AI app to enable tool-driven tasks.
Design and implement custom functions that let your AI app run software actions and return structured outputs.
Connect an AI app to local and hosted Model Context Protocol (MCP) servers to access external services and resources.
Evaluate when to use built-in tools vs. custom functions vs. MCP servers for a given requirement and justify your choice based on the desired capability.
Learning objectives
Define tools and function calling and explain how they work in the OpenAI Responses API.
Integrate built-in tools (such as web browsing) into an AI app to enable tool-driven tasks.
Design and implement custom functions that let your AI app run software actions and return structured outputs.
Connect an AI app to local and hosted Model Context Protocol (MCP) servers to access external services and resources.
Evaluate when to use built-in tools vs. custom functions vs. MCP servers for a given requirement and justify your choice based on the desired capability.
Concepts
Introduction
- Give your AI app real-world powers
Function Calling In-Depth
- Tools and function calls explained
- Controlling when function calls happen
- Functions vs built-in tools
- Streaming tool and function calls
Conclusion
- Next steps
Related courses
- OpenAI API: Function Calling (2023)
- OpenAI API: Multimodal Development with GPT-4o
- OpenAI API: Building Voice Apps with the Realtime API (October 2024)
- OpenAI API for Python Developers
- OpenAI API: Building Front-End Voice Apps with the Realtime API and WebRTC
- OpenAI API: Agents
- Creating Advanced AI Applications with Python, APIs, and GitHub Models
- OpenAI Realtime API: Building Voice Agents with Realtime API and the Agents SDK
Related learn paths
- Develop Your Skills with the OpenAI API
- Building Generative AI Skills for Web Developers
- Hands-On Projects for OpenAI-Powered Apps
- Build AI Products Using Azure AI Services in Your Development Lifecycle
- Improve Your Programming Skills with Artificial Intelligence
- Foundational AI Skills for Azure Administration
- Getting Started with Prompt Engineering
- Getting Started with Building Custom GPTs