Skip to content
Glossary

Tool calling

The ability of a language model to request an action from outside software, such as looking up an order or updating an address, and use the result in its reply.

By Syed Ali · Updated

What tool calling means

A language model writes text. Tool calling lets it do more than that. The model is given a list of tools, each with a name, a description and the inputs it takes. When the model decides a tool would help, it writes a structured request, such as "get_order_status, order 48213". The application runs that request against the real system and passes the result back. The model then uses it to write the reply or pick its next step.

This is what turns a chatbot into an AI agent. Without tools, it can explain your return policy. With them, it can check whether this customer's order qualifies and start the return.

Lookups and actions

Tools fall into two groups, and they deserve different treatment.

Lookups read data: order status, tracking events, plan details, invoice history. They are low risk and remove the most back-and-forth, because the agent no longer has to ask the customer for facts it can find. Order tracking questions are the classic example.

Actions change something: issue a refund, cancel an order, update an address, pause a subscription. They save the most time but carry real risk, because a mistake costs money or upsets a customer.

How to set up tool calling safely

  1. Map tickets to tools. List your most common requests and the data or action each one needs.
  2. Start with lookups. Connect read-only tools first and check answers improve.
  3. Write rules for each action. For example, refund only orders under a set value and age, never twice.
  4. Keep the check outside the model. The rule should be enforced by the system running the tool, not just stated in the prompt.
  5. Escalate the rest. When a request falls outside the rules, the agent hands the ticket to a person with what it found.
  6. Log every call. A record of which tool was called with which inputs makes reviews and disputes easy.

Steps 3 to 5 are your AI guardrails for actions. The Model Context Protocol is one standard way to expose these tools.

Tool calling in practice

In e-commerce support, most of the value sits in a small set of order actions. Pluno's Deflection AI can issue Shopify refunds, cancel or edit orders, update shipping addresses and send replacements. Subscription changes go through apps such as Recharge or Skio. These actions are rule-based: Pluno acts on its own only where the team's AI Workflow rules allow it, and anything that needs a business decision escalates. The Shopify connection docs explain the setup.

Frequently asked questions

Tool calling, also called function calling, is how a language model works with other software. The model is told which tools exist and what they need. When one would help, it outputs a structured request, the application runs the tool, and the result goes back to the model.

No. The model only asks for the call with specific inputs. The application around it decides whether to run it, runs it with its own credentials and returns the result. That gap is where permissions and checks belong.

Start with read-only lookups for the facts behind common tickets, such as order status, subscription details or account plan. Add actions that change something, such as refunds or address updates, only with written rules for when they are allowed.

A model can call a tool at the wrong time or with the wrong inputs, and a manipulated message can try to trigger an action. Limit tools to what the job needs, check money-moving actions against fixed rules, and send anything unusual to a person.