← AI Glossary

Function calling (tool use)

Agents & orchestration

Function calling lets a language model decide that it needs an external tool, such as an API, a database or a calendar, and produce a structured request with the right parameters. The application runs the call and returns the result to the model, which then writes its answer. It is the core mechanism behind AI agents and the MCP protocol.

In practice at Gensai

Gensai agents use function calling to check a calendar, query a CRM or trigger an n8n workflow, with each tool restricted to authorised actions.