What is Function Calling?
Function calling is a capability that lets an AI model produce a structured request to invoke a specific external function or tool with defined arguments, rather than only generating free-form text, so the surrounding application can execute real actions on the model's behalf.
A raw language model can only produce text — it can describe what it thinks should happen, but it can't itself check a calendar, query a database, or send an email. Function calling closes that gap: the application defines a set of available functions with names, descriptions, and typed parameters, the model is given that list alongside the user's request, and when appropriate the model responds not with prose but with a structured call — "invoke get_weather with location=Boston" — which the application executes and feeds the result back into the conversation.
This is the mechanical foundation underneath most AI agents and the Model Context Protocol (MCP): an agent that can "do things" rather than just talk is, under the hood, a language model repeatedly deciding which function to call, executing it via the host application, and reasoning over the result to decide the next step. Reliability depends heavily on how well the function schema is described — vague names or missing parameter descriptions lead to malformed or wrong calls — and on the host application validating and sandboxing what a called function is actually allowed to do, since the model's judgment about when to call something is not itself a security boundary.
In practice with Neotask
Neotask agents use function calling to take real actions — creating a calendar event, sending a message, updating a CRM record — by producing a structured tool call that the gateway executes and validates against the tenant's actual permissions, rather than the agent directly touching any system itself. The tool-policy layer enforces what a given function call is allowed to do regardless of what the model requests.
Related terms
- model-context-protocol
- ai-agent
- tool-use
- api-integration
- agentic-workflow
Plans
Free
$0/mo
Download without a card and start for free.
Individual
$50/mo
The full personal agent platform for one person.
Business
$100/mo
One company workspace with room to add your team.
Enterprise
$200/mo
Multiple workspaces and capacity for larger teams.
Continue