Tool Calling

Tool calling is an AI model's ability to request an external function, such as an order lookup, and use the result. See how it works in support.

What is tool calling?

Tool calling is the ability of an AI model to request an external function, such as an API, and use the result in its answer. The model does not run the function itself. It produces a structured request, the application executes it, and the model reads the output. Tool calling is also known as function calling.

In customer support, tool calling is what lets an AI agent work with live data. The agent can check an order, find an invoice or update a subscription, instead of only quoting a help article.

How tool calling works

Tool calling works as an exchange between the model and the application that hosts it.

  1. Define the tools. The team describes each tool: its name, what it does and the inputs it needs. An example is an order lookup that needs an order number.
  2. Receive the request. A customer asks where an order is.
  3. Choose a tool. The model reads the question and the tool descriptions. It decides the order lookup fits.
  4. Produce the call. The model outputs a structured request with the tool name and the order number.
  5. Execute. The application validates the request, calls the order system and gets the result.
  6. Answer. The model reads the result and tells the customer the delivery status in plain language.

If an input is missing, the model asks the customer for it. A task can chain several calls. A plan change may need one call to read the account and another to apply the change.

The application stays in control. It decides which tools exist, checks every request and can refuse one that breaks a rule.

Why tool calling matters in customer support

Tool calling matters in customer support because many tickets cannot be closed with text alone. Order tracking needs the carrier status. A refund status question needs the payment record. An invoice copy needs the invoice itself.

Without tool calling, the AI explains where the customer can find the answer. With tool calling, the AI gives the answer. That difference decides whether the conversation is resolved or handed to a person.

  • Cost. Account-specific requests close without an agent, which lowers the cost of each resolution.
  • Speed. The customer gets the status or the change in the same conversation, within seconds.
  • Quality. Answers use the customer's real data, not a general description of the process.
  • Risk. Tools that change data can cause real errors. A wrong lookup is harmless. A wrong cancellation is not.

Tool calling is the technical base of agentic AI. An AI that cannot call tools can only talk.

Tool calling vs workflow automation

Tool calling lets the AI decide which action to take, while workflow automation follows a path a person defined in advance. A workflow says: when a ticket has this tag, do this step. Tool calling says: here are the available actions, choose what the request needs.

Each has a place. Workflow automation is predictable and fits fixed processes, such as routing or sending a survey after closing. Tool calling fits requests that vary, where the customer's wording and situation change each time.

Many teams combine them. The AI understands the request and calls a tool. That tool triggers a workflow with fixed, tested steps. The team gets flexible understanding and predictable execution.

How to set up tool calling

To set up tool calling in support, begin with read-only tools on high-volume requests.

  1. Pick the requests. Find the ticket types that need account data, such as order tracking or invoice copies.
  2. Start with lookups. Give the AI tools that read data before tools that change it.
  3. Describe each tool clearly. State what it does, when to use it and when not to. The model relies on that description.
  4. Verify identity. Require confirmation of who the customer is before any tool returns personal data.
  5. Limit write actions. Add AI guardrails such as amount caps and confirmation steps for refunds and cancellations.
  6. Log and review. Record every call, its inputs and its result. Review failures and wrong choices weekly.

Written AI agent procedures tell the AI in which order to use its tools for each ticket type.

How Customerly handles tool calling

Customerly handles tool calling through AI Missions in Aura AI. AI Missions are multistep actions carried out through API calls, such as looking up an order or changing a subscription in the company's own systems. Aura AI answers customers 24/7 and hands the conversation to a human when needed. The AI customer support agent page shows examples, and you can book a demo to test your own use cases.

FAQ

Is tool calling the same as function calling?

Yes, tool calling and function calling describe the same capability. Both mean the model outputs a structured request for an external function. Vendors use the two names interchangeably.

Does the AI run the tool itself?

No, the model only requests the tool. The application around the model runs it and returns the result. This separation lets the application check and block requests.

Can tool calling go wrong?

Yes, the model can pick the wrong tool or pass a wrong input. Clear tool descriptions, input validation and limits on write actions reduce this. Logs make the remaining errors visible.

What systems can an AI agent reach with tool calling?

An AI agent can reach any system that offers an API and that the team connects. Common examples are order management, billing, subscriptions and the CRM. Access should match what the task needs.

How does tool calling relate to Model Context Protocol?

The Model Context Protocol is a standard way to describe and connect tools. Tool calling is the model's ability to use them. The protocol supplies the tools and tool calling selects one.

Related Terms

Agentic AI

Agentic AI is AI that plans steps, uses tools and completes a task with limited human direction. See how it works in customer support.

Model Context Protocol (MCP)

Model Context Protocol (MCP) is an open standard that connects AI assistants to external tools and data. See what it means for customer support.

AI Agent Procedures

AI agent procedures are step-by-step instructions an AI agent follows to handle one ticket type, from the first check to the final action or handoff.

AI Agent

An AI agent is software that uses a large language model to understand a customer request, plan the steps and carry them out, with a human as backup.

Workflow Automation

Workflow Automation is a strategy that uses technology to automate manual tasks in a workflow, improving efficiency and productivity.

AI Guardrails

AI guardrails are the rules and checks that limit what an AI agent may say and do. Learn how they work in customer support and how to set them.

Some of the businesses that choose Customerly

AI Support That Sets You Apart.
Start Leading Today.

AI Support Software