Glossary

Tool use

The ability of a language model to call external capabilities, such as search, APIs, databases or code execution, and use the results in its answer or next action.

Tool use is the ability of a language model to call capabilities outside itself, such as a search index, an API, a database or a code runner, and to use what comes back in its answer or its next action. It is what turns a model that can only write text into an AI agent that can look things up and get work done. In most APIs it is implemented through function calling.

Why models need tools

A model on its own knows only what was in its training data, up to its knowledge cutoff, and can only produce text. Tools fill both gaps. Retrieval tools give it current and private information, which is the basis of agentic RAG, where the model decides when and what to search. Action tools let it change things in the world, such as creating a ticket or updating a record. Tools also cover what models do poorly, such as exact arithmetic or looking up today’s date.

Kinds of tools

The agent tools in production systems fall into a few broad groups, each with its own failure mode.

Kind of tool

Examples

Main risk

Retrieval

Document search, memory lookup, database reads

Wrong or stale results presented as fact

Web

Web search, fetching and reading pages

Instructions hidden in page content

Actions

Sending email, creating tickets, updating records

Side effects that cannot be reversed

Code execution

Running generated code in a sandbox

Needs strong isolation from everything else

Computer and browser

Computer use and browser agents that click through interfaces

Broad access and slow, brittle runs

Tools reach the model in different ways. Some are defined directly in the application. Others are hosted on an MCP server and discovered through the Model Context Protocol, so one tool can serve many agents and clients. Packaged instructions that tell an agent how to combine tools for a task are often called agent skills.

How agents choose tools

On each turn the model reads the tool names and descriptions in its context and decides whether to call one. Selection gets less reliable as the list grows, since similar tools compete and every definition uses space in the context window. Common fixes are to keep the set small for each task, write descriptions that say when not to use a tool, and give results a clear structure so the model can tell success from failure. Returning a compact, relevant result matters as much as calling the right tool: a search tool that returns ten long documents pushes out the context the model needs next.

Keeping tool use safe

Tool use widens what can go wrong. Text in a retrieved document or web page can carry indirect prompt injection that steers the model toward a harmful call, and a malicious tool description can do the same through tool poisoning. Teams limit the damage with scoped agent permissions, approval through human in the loop for irreversible actions, and agent tracing that records every call and result for review.

Tool use with Exabase

Exabase provides the retrieval and storage side of an agent’s toolset. A memory tool can call Memory to search or ask about what the agent knows of a user. A document tool can call Deep Search, which returns the matching passage with a page number or timestamp, so the result stays compact. A file tool can send a PDF, recording or web page to Extract and get structured JSON back. Scoping each call to a Base keeps a tool inside one user’s or tenant’s data.

For write actions inside a Base, filesystem snapshotting records what each run renamed, moved or deleted so it can be recovered, as the agent undo solution explains; actions in outside systems are not covered and need their own safeguards. Exabase Workers are a worked example of controlled tool use. Each Worker has built-in tools for searching and reading resources, writing notes, organising folders and tags, managing tasks and web search, and its toolPermissions setting restricts it to the ones you allow. The worker tools guide lists them, and the create Worker endpoint shows the configuration.

For further reading, what can’t be undone: the side effects to guard against covers action tools, and the internal tools use case shows retrieval tools in practice. If you are choosing a web search tool for an agent, Exabase vs Tavily and Exabase vs Firecrawl compare options.

FAQs

What is tool use in AI?

Tool use is a language model calling external capabilities, such as search, APIs, databases or code execution, and using the results to answer or decide what to do next.

What is the difference between tool use and function calling?

Tool use is the general capability. Function calling is the API mechanism most providers use for it, where the model returns a named function and JSON arguments for your code to run.

What kinds of tools can AI agents use?

Retrieval tools such as search and memory, web tools, action tools that change other systems, code execution in a sandbox, and computer or browser control.

How many tools should an agent have?

As few as the task needs. Tool selection becomes less reliable as the list grows, and every definition takes up context, so many teams load tools per task.

How do you make tool use safe?

Scope each tool narrowly, validate its arguments, require approval for irreversible actions, and log every call. Treat any text the agent reads as a possible source of injected instructions.

Which tools do Exabase Workers have?

Search and read, notes and bookmarks, folders and tags, tasks, a planning scratchpad and web search. Each Worker can be limited to a subset through toolPermissions, as the about Workers guide explains.

Related pages: Function calling, Agent tools, MCP, AI agent, Agentic AI, Agent permissions, Agent scratchpad, Agent undo solution, Research agents use case, Best AI agent infrastructure, ReAct agent, Agent loop, Agent harness, Agent skills

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.