The maintainer has not written a description at the source.
Repo MervinPraison/PraisonAI-Tools, read from GitHub 8 h ago. MervinPraison has not joined Take My Repo.
MervinPraison/PraisonAI-Tools is a public repo on GitHub by MervinPraison. It declares the MIT license on GitHub. It is written mainly in Python, has 33 stars and last changed on 2026-11-16. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Base classes for creating custom tools for PraisonAI Agents.
This package provides base classes (BaseTool, @tool decorator) for creating custom tools that work with PraisonAI Agents.
Note: Common tools like Tavily, Exa, You.com, DuckDuckGo, Wikipedia, arXiv, and many more are already built into
praisonaiagents. You don't need this package for those - just use them directly frompraisonaiagents.tools.
pip install praisonai-tools
PraisonAI Agents supports 8 different ways to add tools. Choose the method that best fits your use case:
| Method | Best For | Complexity |
|---|---|---|
| 1. Plain Python Functions | Quick custom tools | ⭐ Easy |
| 2. Built-in Tools | Common operations | ⭐ Easy |
| 3. @tool Decorator | Custom tools with metadata | ⭐ Easy |
| 4. BaseTool Class | Complex tools with state | ⭐⭐ Medium |
| 5. Pydantic Class with run() | Validated tools | ⭐⭐ Medium |
| 6. LangChain Tools | LangChain ecosystem | ⭐⭐ Medium |
| 7. CrewAI Tools | CrewAI ecosystem | ⭐⭐ Medium |
| 8. MCP Tools | External services | ⭐⭐⭐ Advanced |
The simplest way - just write a function with type hints and docstring:
from praisonaiagents import Agent
def search_web(query: str, max_results: int = 5) -> list:
"""Search the web for information.
Args:
query: The search query
max_results: Maximum number of results to return
"""
# Your implementation
return [{"title": "Result 1", "url": "https://..."}]
def calculate(expression: str) -> float:
"""Evaluate a mathematical expression."""
return eval(expression)
# Just pass the functions!
agent = Agent(
instructions="You are a helpful assistant",
tools=[search_web, calculate]
)
agent.start("Search for Python tutorials and calculate 15 * 7")
How it works: PraisonAI automatically:
Use pre-built tools from praisonaiagents.tools:
from praisonaiagents import Agent
from praisonaiagents.tools import (
# Search
tavily_search,
exa_search,
internet_search, # DuckDuckGo
# Wikipedia
wiki_search,
wiki_summary,
# News
get_article,
get_trending_topics,
# Files
read_file,
write_file,
# Code
execute_code,
# And many more...
)
agent = Agent(
instructions="You are a research assistant",
tools=[tavily_search, wiki_search, read_file]
)
agent.start("Search for AI news and save a summary to a file")
| Category | Tools |
|---|---|
| Search | tavily_search, exa_search, ydc_search, internet_search, searxng_search |
| Wikipedia | wiki_search, wiki_summary, wiki_page, wiki_random |
| arXiv | search_arxiv, get_arxiv_paper, get_papers_by_author, get_papers_by_category |
| News | get_article, get_news_sources, get_articles_from_source, get_trending_topics |
| Web Crawling | crawl4ai, scrape_page, extract_links, extract_text |
| Files | read_file, write_file, list_files, copy_file, move_file, delete_file |
| Data | read_csv, write_csv, read_json, write_json, read_excel, read_yaml |
| Code | execute_code, analyze_code, format_code, lint_code |
| Shell | execute_command, list_processes, kill_process, get_system_info |
| Calculator | evaluate, solve_equation, convert_units, calculate_statistics |
| Finance | get_stock_price, get_stock_info, get_historical_data |
| Database | query (DuckDB), insert_document, find_documents (MongoDB) |
Use the @tool decorator for custom tools with metadata:
from praisonaiagents import Agent
from praisonai_tools import tool
@tool
def get_weather(location: str, units: str = "celsius") -> dict:
"""Get current weather for a location.
Args:
location: City name or coordinates
units: Temperature units (celsius/fahrenheit)
"""
# Your implementation
return {"temp": 22, "condition": "sunny", "location": location}
@tool(name="custom_search", description="Search with custom parameters")
def my_search(query: str, limit: int = 10) -> list:
"""Custom search implementation."""
return [{"result": query}]
agent = Agent(
instructions="You are a weather assistant",
tools=[get_weather, my_search]
)
agent.start("What's the weather in London?")
For complex tools with state, validation, or multiple methods:
from praisonaiagents import Agent
from praisonai_tools import BaseTool
class DatabaseTool(BaseTool):
name = "database_query"
description = "Query a database and return results"
def __init__(self, connection_string: str):
self.connection_string = connection_string
self._connection = None
super().__init__()
def run(self, query: str, limit: int = 100) -> list:
"""Execute a database query.
Args:
query: SQL query to execute
limit: Maximum rows to return
"""
# Your implementation
return [{"id": 1, "name": "Example"}]
# Create instance with configuration
db_tool = DatabaseTool(connection_string="postgresql://...")
agent = Agent(
instructions="You are a data analyst",
tools=[db_tool]
)
agent.start("Query the users table for active users")
Use Pydantic for validated tools with type checking:
from praisonaiagents import Agent
from pydantic import BaseModel, Field
from typing import Optional
import requests
class APISearchTool(BaseModel):
"""Search tool using an external API."""
api_url: str = "https://api.example.com/search"
api_key: Optional[str] = None
max_results: int = Field(default=10, ge=1, le=100)
def run(self, query: str) -> dict:
"""Execute search query.
Args:
query: Search query string
"""
headers = {"Authorization": f"Bearer {self.api_key}"} if self.api_key else {}
response = requests.get(
self.api_url,
params={"q": query, "limit": self.max_results},
headers=headers
)
return response.json()
# Pass the class (not instance) - PraisonAI will instantiate it
agent = Agent(
instructions="You are a search assistant",
tools=[APISearchTool]
)
agent.start("Search for machine learning tutorials")
Use any LangChain tool directly:
from praisonaiagents import Agent
from langchain_community.tools import YouTubeSearchTool, DuckDuckGoSearchRun
from langchain_community.utilities import WikipediaAPIWrapper
# Method 1: Pass LangChain tool classes directly
agent = Agent(
instructions="You are a research assistant",
tools=[YouTubeSearchTool, WikipediaAPIWrapper]
)
agent.start("Find YouTube videos about Python and search Wikipedia for its history")
For more control, wrap LangChain tools in functions:
from praisonaiagents import Agent
from langchain_community.tools import YouTubeSearchTool
from langchain_community.utilities import WikipediaAPIWrapper
def youtube_search(query: str, max_results: int = 5) -> str:
"""Search YouTube for videos.
Args:
query: Search query
max_results: Number of results
"""
yt = YouTubeSearchTool()
return yt.run(f"{query}, {max_results}")
def wikipedia_search(query: str) -> str:
"""Search Wikipedia for information.
Args:
query: Search query
"""
wiki = WikipediaAPIWrapper()
return wiki.run(query)
agent = Agent(
instructions="You are a research assistant",
tools=[youtube_search, wikipedia_search]
)
agent.start("Find videos about AI and get Wikipedia info on machine learning")
from praisonaiagents import Agent
from langchain_agentql.tools import ExtractWebDataTool
def extract_web_data(url: str, query: str) -> dict:
"""Extract structured data from a webpage.
Args:
url: URL to extract from
query: What data to extract
"""
tool = ExtractWebDataTool()
return tool.invoke({"url": url, "prompt": query})
agent = Agent(
instructions="You are a web scraping assistant",
tools=[extract_web_data]
)
agent.start("Extract product names and prices from https://example.com/products")
Use CrewAI tools (classes with _run method):
from praisonaiagents import Agent
# CrewAI-style tool class
class CrewAISearchTool:
"""A CrewAI-compatible search tool."""
name = "web_search"
description = "Search the web for information"
def _run(self, query: str) -> str:
"""Execute the search.
Args:
query: Search query
"""
# Your implementation
return f"Results for: {query}"
# Pass the class - PraisonAI detects _run method
agent = Agent(
instructions="You are a search assistant",
tools=[CrewAISearchTool]
)
agent.start("Search for latest tech news")
Use external tools via MCP servers:
from praisonaiagents import Agent, MCP
agent = Agent(
instructions="You are a file manager assistant",
tools=MCP("npx -y @modelcontextprotocol/server-filesystem",
args=["/Users/username/Documents"])
)
agent.start("List all Python files in the Documents folder")
from praisonaiagents import Agent, MCP
agent = Agent(
instructions="You are a time assistant",
tools=MCP("python -m mcp_server_time --local-timezone=America/New_York")
)
agent.start("What time is it in New York? Convert to UTC.")
from praisonaiagents import Agent, MCP
import os
agent = Agent(
instructions="You are a GitHub assistant",
tools=MCP("npx -y @modelcontextprotocol/server-github",
env={"GITHUB_TOKEN": os.environ["GITHUB_TOKEN"]})
)
agent.start("List my recent repositories")
from praisonaiagents import Agent, MCP
agent = Agent(
instructions="You are a multi-capable assistant",
tools=[
MCP("npx -y @modelcontextprotocol/server-filesystem", args=["/tmp"]),
MCP("python -m mcp_server_time"),
my_custom_function, # Can mix with other tool types!
]
)
agent.start("Create a file with the current timestamp")
You can mix and match all tool types:
from praisonaiagents import Agent, MCP
from praisonaiagents.tools import tavily_search, wiki_search
from praisonai_tools import tool, BaseTool
from langchain_community.tools import YouTubeSearchTool
# Plain function
def calculate(expression: str) -> float:
"""Calculate a math expression."""
return eval(expression)
# @tool decorator
@tool
def format_output(data: dict) -> str:
"""Format data as a nice string."""
return str(data)
# BaseTool class
class CustomTool(BaseTool):
name = "custom"
description = "A custom tool"
def run(self, input: str) -> str:
return f"Processed: {input}"
# Combine everything!
agent = Agent(
instructions="You are a super assistant with many capabilities",
tools=[
# Built-in tools
tavily_search,
wiki_search,
# Plain function
calculate,
# Decorated function
format_output,
# BaseTool instance
CustomTool(),
# LangChain tool
YouTubeSearchTool,
# MCP server
MCP("python -m mcp_server_time"),
]
)
agent.start("Search for AI news, find related YouTube videos, and calculate 2^10")
To create a pip-installable tool package:
# my_tools/weather.py
from praisonai_tools import BaseTool
class WeatherTool(BaseTool):
name = "get_weather"
description = "Get weather for a location"
def run(self, location: str) -> dict:
# Implementation
return {"temp": 22, "location": location}
# Convenience instance
weather_tool = WeatherTool()
[project]
name = "my-weather-tools"
version = "0.1.0"
dependencies = ["praisonai-tools"]
[project.entry-points."praisonaiagents.tools"]
weather = "my_tools.weather:WeatherTool"
from praisonaiagents import Agent
from my_tools.weather import weather_tool
agent = Agent(
instructions="Weather assistant",
tools=[weather_tool]
)
praisonai-tools registers its own toolsThe bundled tools in this package are discovered automatically. Every
module under praisonai_tools/tools/ is scanned (at import time, without
executing the module) and its public top-level classes and functions become
importable directly:
MervinPraison/PraisonAI-Tools is a public repo on GitHub by MervinPraison. Its maker has not written a description.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-16. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run PraisonAI-Tools. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-11-16. It has 33 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.