METAL for iPhone

Read AI news in the METAL app.

Download METAL and discover fresh AI stories every day.

Download on the App Store

For iPhone · Free download

Search for METAL AI Magazine in the App Store on your iPhone.

METAL

AI GlossaryㄷTechnical words in the news

Tool Calling Loop

The repeated process where an AI, unable to answer on its own, calls an external tool for information, checks whether the result is enough, and calls another tool if it isn't — over and over as needed

In plain words

A Tool Calling Loop is the process where an AI that can't produce an answer by itself calls an external tool to get the information it needs, judges whether that result is sufficient, and if not, calls another tool — repeating this cycle as many times as necessary.

Think of an employee in a meeting who gets asked a question they can't answer on the spot. They step out to the file room, grab a document, and if that still isn't enough, go back for another one, only returning to the meeting once they've gathered enough material to give an answer. This whole back-and-forth flow — look something up, judge whether it's enough, look up more — used to have to be coded in by hand, step by step, in a computer program.

Recently, cloud providers have started handling this looping process themselves on the server side. That means the person building the application no longer has to design this back-and-forth process directly; they can simply take the final result and use it.

How it shows up in the news

The article explains that AWS Amazon Bedrock's web search feature means "you don't need to implement a separate tool calling loop on the client side." This doesn't mean the tool calling loop itself has disappeared. The repeated cycle of calling a search, judging the result, and searching again still happens — it's just that AWS's servers handle it automatically instead of the developer writing that logic themselves.

Try it yourself

Try giving a chatbot with web search enabled a question that can't be answered with a single search — for example, "Look up a specific company's stock price this week, its percentage change from the previous day, and the recent news behind that change, then summarize it," a question that requires gathering different pieces of information from different sources. If the chatbot doesn't answer right away but instead runs several separate searches, that's the Tool Calling Loop in action.

See also

Stories using this term

Browse every entry