async def install_library(request: InstallLibraryRequest):
    """
    Endpoint to install a library.

    Args:
        library: The library to install

    Returns:
        A success message
    """
    with ToolManager() as tool_client:
        tool_client.install_library(request.library)
    return {"message": "Library installed successfully"}

    Endpoint to install a library.

    Args:
        library: The library to install

    Returns:
        A success message
    
src/upsonic/server/tools/server.py