Back
Interactive Explainer

Tool calling and external systems

How agents use APIs, databases, and tools to take action.

Tool calling and external systems

How agents use APIs, databases, and tools to take action.

~1 min read
Be the first to complete!

Why tools matter

LLMs alone cannot read live data or change the world. Agents call tools: search the web, call APIs, query databases, run code. That is how they go from "generate text" to "get the answer and book the flight."

The tool-calling pattern

The agent receives a request, reasons about which tool to use and with what inputs, calls the tool, gets the result, and may repeat. The loop continues until the task is done or a final answer is returned.

Designing tools

Expose clear, small operations (e.g. "search", "get_weather", "create_calendar_event"). The model chooses from available tools using their names and descriptions. Well-designed tools make agents reliable and easier to debug.

Ready to see how this works in the cloud?

Switch to Career Paths for structured paths (e.g. Developer, DevOps) and provider-specific lessons.

View role-based paths

Sign in to track your progress and mark lessons complete.

Discussion

Questions? Discuss in the community or start a thread below.

Join Discord

In-app Q&A

Sign in to start or join a thread.