Over the past year, the heat around large models has shifted from being eloquent to getting things done. In factories, the AI discussion has moved from whether it can write a report to whether it can query data, open work orders and adjust equipment by itself. The capability that decides this is the tool calling ability of AI Agents.
1. Core Concepts and Definitions
An AI Agent can be understood as a software entity that can perceive its environment, make its own judgments and take its own actions to accomplish a goal. Its biggest difference from an ordinary chatbot is that a chatbot only outputs text, while an agent must output actions.
Tool calling, also called Function Calling, refers to the agent judging during reasoning that it cannot work this out with its brain alone and needs an external tool, then proactively initiating the call. That tool can be a piece of code, an API interface, a database query, a functional module of industrial software, or even a command sent to a PLC.
As an analogy: the large model is the brain, and tool calling lets the brain direct the hands to turn screws and the eyes to read gauges. Without tool calling, the agent is an advisor trapped in a chat box; with tool calling, it becomes an operator that can run errands and act on the shop floor.
2. Technical Principles and Key Capabilities
Tool calling sounds simple, but implementing it involves several layers of key capability.
The first layer is intent recognition and tool matching. When a user says to check yesterday's first pass yield on the SMT line, the agent must judge that this is not small talk, that it needs to call the MES query interface, and that it must extract the parameters yesterday, SMT line and first pass yield. Veterans in many factories omit subjects and mix in dialect, so whether the model can accurately map to specific tools and parameters directly determines usability.
The second layer is call orchestration. Complex tasks often require stringing multiple tools together. For example, after finding an anomaly, notify maintenance and generate a spare parts requisition involves four or five tools in sequence: equipment status query, staffing query, work order creation and inventory query. The agent must know which to call first, which next, which to retry on failure and which result to pass to the next step.
The third layer is result parsing and fault tolerance. Tools often return a pile of JSON or tables, and the agent must understand it and judge whether the result is reasonable. If a query returns empty, it must know whether the parameters were wrong or there is genuinely no data, rather than fabricating an answer.
The fourth layer is permissions and safety boundaries. Not every tool in a factory can be called freely. Operations such as line start-stop and parameter dispatch must have permission checks and human confirmation. A good tool calling framework distinguishes read-only tools from write tools, with the latter requiring extra approval.
There are currently two mainstream approaches in the industry: one relies on the Function Calling capability natively supported by large models, and the other uses an orchestration framework to describe tools as schemas the model can understand. Each has its scenarios; the former is lightweight and the latter is flexible.
3. Manufacturing Application Scenarios
Scenario 1: suppose an electronics plant with frequent SMT changeovers. An operator asks in natural language how many material changes line A had today and how long each line stop lasted. The agent calls the MES changeover record interface and the equipment downtime log, automatically summarizes them into a table and flags the occurrences that exceed the threshold. If one line stop exceeded 15 minutes, it can further call the maintenance work order system to see whether a fault was reported at the time. The whole process needs no operator to dig through three systems.
Scenario 2: suppose an auto parts company making injection molded parts. An inspector finds a batch out of dimensional tolerance and types a request to check which injection molding machine, which mold and what parameters this batch used. The agent calls the production traceability system, the equipment parameter library and the mold management module to pull out the related information. Further, it can call SPC tools to run process capability analysis and judge whether the shift is sporadic or a trend. In such scenarios, tool calling compresses what used to require half a day across systems and shifts into a few dozen seconds.
Scenario 3: suppose an equipment manufacturer doing after-sales repair. A field engineer calls in to say machine No. 3 alarms with E12. The agent calls the equipment file to look up the alarm meaning, the knowledge base for historical handling plans and spare parts inventory for the corresponding module, and finally generates a repair recommendation for the engineer. If spares are insufficient, it can also trigger a draft purchase request. Here tool calling strings together after-sales, knowledge, inventory and procurement.
What these scenarios have in common: data is scattered across multiple systems, switching back and forth is costly for people, and tool calling turns the agent into a unified natural language entry point.
4. Selection and Implementation Advice
Many enterprises focus only on model parameters during selection and ignore the engineering capability of tool calling. A few practical suggestions.
1. Inventory the tool list before discussing agents. List the interfaces in existing systems that can be called and the functions that can be wrapped, and assess which are read-only, which are write and which need approval. The quantity and quality of tools affect implementation more than model size.
2. Start with read-only scenarios. First let the agent query data, summarize and give recommendations without directly controlling equipment. Once accuracy and trust build up, gradually open write tools. A common industry practice is three stages: query assistance, recommendation generation and controlled execution.
3. Value the standardization of tool descriptions. Whether the model calls the right tool depends largely on how well tool names, descriptions and parameter documentation are written. Descriptions should be as specific as an operating manual for a new employee, without internal jargon.
4. Keep human confirmation nodes. For actions such as line changes, parameter modification and work order closure, set confirmation steps. The agent can initiate, but the person makes the final click. This is both a safety requirement and a boundary of responsibility.
5. Pay attention to call logs and observability. The inputs, outputs, duration and success of every tool call must be recorded. Only when problems can be replayed can there be continuous optimization. Tool calling without logs is a black box.
Based on feedback from practice with more than 3,200 end points and more than 120 customers (covering 15+ industries), solutions with strong tool calling capability show clearly higher user retention and daily usage frequency. The reason is simple: only an agent that can get things done is one people are willing to use every day.
5. Outlook
The first direction is standardization of tool calling. In the future industrial software may, like providing REST APIs today, provide tool description files for AI Agents by default. Connecting an agent to a new system will no longer require writing adapter code one by one; it will read the standard description and be ready.
The second direction is collaborative calling among multiple agents. One agent manages equipment, one manages quality and one manages scheduling, and they pass tasks and results to each other through tool calls. This fits the actual organizational structure of a factory better than a single all-capable agent.
The third direction is edge-side tool calling. Many factories are latency-sensitive and do not let data leave the plant, so agents need to run on edge servers and call local tools. This places new demands on model lightweighting and real-time tool calling, and it is an area of intensive iteration over the next year or two.
Tool calling is not an accessory feature of AI Agents but the key leap from being able to talk to being able to do. For manufacturing, this leap means AI can finally reach deep into systems and touch data, processes and equipment. Whoever makes tool calling stable, accurate and safe will let agents truly gain a foothold on the shop floor.