AI Compass

AI agents and tool use

AI systems that can take actions, such as searching, running code or using apps, to finish a task.

What is it?

Tool use lets a model do more than write text. The developer describes tools the model may call, such as a web search, a calculator, a database query or sending an email. The model decides when a tool would help, asks for it to be run, reads the result and continues.

An AI agent repeats this loop: it plans, uses tools, checks results and adjusts until the task is done or it needs help. Agents can handle multi-step work like researching a topic or fixing a bug, but they need clear goals, limited permissions and human oversight.

Which models use it?

  • OpenAI, Anthropic and Google APIs all support tool (function) calling.
  • Coding agents such as Claude Code, GitHub Copilot's agent features and Cursor edit files and run commands.
  • ChatGPT and Claude can use tools such as web search and code execution in some plans.
  • Frameworks such as LangChain help developers build agent workflows.

How to use it

  1. Define a clear, limited goal and what "done" looks like.
  2. Give the agent only the tools and permissions it really needs.
  3. Require approval before actions that are destructive, costly or hard to undo.
  4. Let it work in small steps and review progress regularly.
  5. Check results yourself instead of trusting the agent's own report.
  6. Keep logs of what the agent did so you can audit and fix problems.

Benefits

  • Automates multi-step tasks that plain chat cannot finish.
  • Can use up-to-date information through search and data tools.
  • Saves time on repetitive work like research, data gathering and code fixes.
  • Results can be grounded in real tool outputs rather than memory.

Limits and risks

  • Agents can make mistakes that compound over many steps.
  • Broad permissions can cause real damage, such as deleting files or sending wrong messages.
  • Content from the web or documents can contain prompt injection that tries to hijack the agent.
  • Long agent runs can be slow and expensive.

Prompt template

Copy it, replace the parts in [brackets] and paste it into any AI chat.

You are helping me with [task]. You may use these tools: [list tools]. Goal: [clear outcome]. Rules: work in small steps; before any action that deletes, sends, pays or cannot be undone, stop and ask me; never assume a tool succeeded, check its result; if you get stuck, explain why and suggest options. Start by writing your plan.

More in Building with AI

Learn AI in the AI Compass app

Every guide and dictionary card is also in the AI Compass app, with saved items, search and “Try it” buttons that open chat, image or video with the example filled in. Reading is free; creating uses credits, and the price is shown before you start.