Skip to content

Tool Use

Tool use is the capability of AI agents to invoke external functions, APIs, databases, and services to retrieve information or take actions in the real world beyond generating text.

Understanding Tool Use

Raw language models can only generate text. Tool use transforms them into agents that can act. When an LLM has access to tools, it can decide to call a function to search the web, read a file, query a database, send an email, or interact with any API. The model receives the tool's output and incorporates it into its reasoning, enabling a cycle of thought, action, and observation that allows complex multi-step tasks to be completed.

Tool use works through a standardized protocol. The LLM is given a list of available tools with their names, descriptions, and parameter schemas. When the model determines a tool should be called, it generates a structured tool call (typically JSON) with the function name and arguments. The application executes the call, collects the result, and returns it to the model as a new message. The model then continues reasoning with the tool output available.

The quality of tool descriptions dramatically affects whether the model calls tools correctly. Well-written descriptions tell the model when to use a tool, what it does, and what parameters are required. Poor descriptions lead to incorrect tool selection or malformed arguments.

ReAct (Reasoning and Acting) is a popular pattern for tool use that interleaves reasoning steps with tool calls, letting the model think about what to do, act, observe the result, and then reason about next steps.

How GAIA Uses Tool Use

Tool use is central to GAIA's ability to act across your digital tools. GAIA's agents use tool calling to read and send Gmail messages, create and update calendar events, manage tasks in Todoist and Linear, post to Slack, query databases, and interact with all your connected integrations.

Related Concepts

Frequently Asked Questions

GAIA's LLM reasons about the task at hand and selects the most appropriate tool from its available set. The model reads each tool's description, determines which fits the current step, generates the correct arguments, and calls it. This selection happens dynamically based on context.

Explore More

Stop doing everything yourself

Join thousands of professionals who gave their grunt work to GAIA.