Quick Start
Any Python function can be a tool. Just add it to the
tools list.How Tools Work
Creating Tools
1
Write a Python Function
2
Add Type Hints
3
Add to Agent
Built-in Tools
PraisonAI includes ready-to-use tools:Web Search
tools=["tavily"] or web=TrueFile Operations
Read, write, and manage files
Code Execution
Run Python code safely
MCP Tools
Connect to external services
Complete Example
Tool Best Practices
Add Docstrings
Describe what the tool does so the agent knows when to use it
Use Type Hints
def tool(x: str) -> str: helps the agent understand inputsHandle Errors
Return helpful error messages instead of crashing
One Purpose
Each tool should do one thing well
MCP Tools (Advanced)
Connect to external services using Model Context Protocol:Next: Agent Memory
Learn how agents remember conversations.

