Skip to content
Finic
AI and agents

What is function calling?

Function calling lets a language model ask an application to run a defined tool, such as a search or a database lookup, by returning structured arguments that the app executes.

Also called: tool use, tool calling

How it works

The developer describes the available tools to the model, each with a name, a purpose and the inputs it takes. When the model decides a tool would help, it replies with a structured request naming the tool and its arguments. The application runs the tool and returns the result, and the model continues.

The model never runs code itself; the application does. Standards such as the Model Context Protocol make it easier to connect many tools to many models in a common way.

Why it matters for fraud and trust

Function calling is what turns a chatbot into an AI agent that can act: look up an account, send a message, issue a refund or make a purchase. Each tool is a new path that an attacker might try to abuse.

If an agent reads untrusted content and can call powerful tools, a hidden instruction may trick it into a harmful action. The safest designs give agents only the tools they need, check arguments in code and require human approval for high-risk actions.

Good practice

  • Grant the least access needed for each tool.
  • Validate every argument in code, not just in the prompt.
  • Log each tool call with inputs, outputs and the user it acted for.
  • Add limits and approval steps for money movement and account changes.

Example

A hypothetical fraud analyst asks an assistant to check a suspicious account. The model calls a lookup tool for recent logins and a second tool for linked devices, then summarizes what it found. It has no tool to close accounts, so the final action stays with the analyst.

← All glossary terms

Ship fraud, bot and KYB checks in minutes.

Start with $5 of free credit, or copy a prompt and let your coding agent set Finic up.

Sign up See pricing