What is function calling (tool use)?
Function calling, also called tool use, is the ability of an AI language model to generate structured calls for predefined functions, such as “check stock level.” The application runs the function and returns the result, from which the model formulates its answer.

Function calling: definition
Language models know only their training knowledge and the texts supplied to them. To query current data or trigger actions, they need tools. Function calling is the mechanism for that: developers describe the available functions to the model with name, purpose and parameters, usually as a JSON schema.
The model does not run the function itself. It only decides which function with which values makes sense and returns a structured call. The software checks it, executes it and returns the result. This separation is important for security and control.
How a call works
A customer asks in chat: “When will my order arrive?” The model recognizes that it needs the function “retrieve order status” and generates the call with the order number from the conversation. The application queries the inventory system and returns the status. From that, the model formulates the answer.
Several functions can be used one after another or in parallel. AI agents are built on this principle. The same technique is also used to get outputs in a fixed format, such as fields from an email as JSON that are written straight into a database. This saves error-prone text parsing.
Real-world example: an assistant for furniture retail
A furniture retailer uses an assistant on its website. It has three functions: check an item’s availability, retrieve order status and create a callback request in the ticket system. It answers questions with real data from the systems instead of guesses. The customer gets an answer that matches the current stock level, and employees are relieved of routine inquiries.
Read-only functions run automatically; the callback request is created only after the customer confirms. The assistant sees only the data that belongs to the logged-in customer. Every call is logged so that it can later be traced what happened. New functions can be added later without rebuilding the assistant.
Security, limits and implementation
The model can supply wrong or manipulated parameters, for example when a third party hides instructions in inputs through prompt injection. Therefore: validate arguments, apply the rights of the respective user, have actions with consequences approved and limit calls. Functions should also be described clearly and unambiguously.
Nano Concepts designs functions, interfaces and permissions so that AI assistants access your systems in a useful but controlled way. This includes a clean breakdown of functions, a validation layer between model and system, and tests with typical as well as deliberately faulty inputs before the assistant goes into production.
- Keep functions small, clearly named and well documented
- Check parameters on the server before execution
- Use the rights of the logged-in user, not blanket system rights
- Have write actions confirmed
- Log calls and set limits
Frequently asked questions about Function calling & tool use
In everyday use the two terms are used almost interchangeably. Function calling emphasizes calling a defined function; tool use means using tools in general, such as search, a database or a calculator. Technically both describe the principle that the model proposes calls and the application executes them.
No. The model only generates a structured call with function name and parameters. It is executed by your software, which can check, limit or reject it beforehand. This way you keep control over what actually happens.
Function calling is the model’s ability to generate calls. The Model Context Protocol (MCP) is an open standard for how tools and data sources are provided and discovered in a uniform way. MCP ensures that integrations built once can be used in many AI applications.
Matching services

AI Agent Development
AI agents that independently prepare and complete tasks across CRM, email and business systems – with approvals.
Learn more
API & Backend Development
APIs and backends that connect ERP, CRM, store and apps – automatic data exchange instead of retyping.
Learn more
AI Integration & Chatbots
Chatbots, assistants and AI workflows that answer inquiries, analyze data and qualify leads.
Learn moreRelated terms
Relevant for these industries
Related magazine articles

Automating Business Processes: 5 Workflows to Start With
Sorting inquiries, coordinating appointments, retyping quotes: five workflows that can be automated in almost every company – with a prioritization guide, a practical example and the typical mistakes.
Read more
AI for SMEs: Where Chatbots and Assistants Really Help
AI pays off in mid-sized companies when it takes over a clearly defined task. Where chatbots and assistants relieve service, sales and knowledge work – and what data protection and the EU AI Act require.
Read more
AI Document Extraction: Process Invoices and Paperwork Automatically
AI can read invoices, delivery notes and orders, validate them and transfer them to your ERP – even without a fixed template. How it works, what e-invoicing changes and where the limits are.
Read more