list_chatbots
Retrieve all active chatbots on YaparAI, including their slug, name, description, and configuration. Use the slug to initiate a chat with a specific bot.
Instructions
List all available chatbots on YaparAI.
Returns active chatbots with their slug, name, description, and configuration. Use the slug to chat with a specific bot. No credits charged.
Returns: List of chatbot configs with slug, name, description, avatar_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/yaparai/tools/chatbot.py:8-20 (handler)MCP tool handler that creates a client instance and calls the client's list_chatbots method.
async def list_chatbots() -> dict: """ List all available chatbots on YaparAI. Returns active chatbots with their slug, name, description, and configuration. Use the slug to chat with a specific bot. No credits charged. Returns: List of chatbot configs with slug, name, description, avatar_url. """ client = YaparAIClient() return await client.list_chatbots() - src/yaparai/client.py:191-193 (helper)HTTP client method that sends a GET request to /v1/chatbot/list to fetch active chatbots.
async def list_chatbots(self) -> list: """List active chatbots.""" return await self._request("GET", "/v1/chatbot/list") - src/yaparai/server.py:150-150 (registration)Registration of list_chatbots as an MCP tool on the FastMCP server.
mcp.tool(list_chatbots) - src/yaparai/server.py:60-64 (registration)Import of list_chatbots from the chatbot tools module into the server.
# --- Chatbot --- from yaparai.tools.chatbot import ( list_chatbots, chat_with_bot, )