Skip to main content

Agentic AI Foundations

Tool Calling

0:00
LearnStep 1/2

Tool Definitions

Defining Tools for Agents

Tools are the bridge between your agent's decisions and the real world. A well-defined tool:

  • Has a clear, descriptive name
  • Documents exactly what it does
  • Specifies parameter types and constraints
  • Handles errors gracefully

Tool Schema Structure

python

Why Good Descriptions Matter

The LLM uses your descriptions to decide:

  • WHEN to use a tool
  • WHAT arguments to pass
  • HOW to interpret results

Bad description: "Gets order info"

Good description: "Look up the current shipping status, tracking number, and estimated delivery date for a customer order. Use this when a customer asks about their order status."

Tool Implementation Pattern

python