def _to_name(tool) -> str:  # type: ignore
    """Gives the tool name for a function by taking the function name and replacing
    underscores with hyphens."""
    return tool.__name__.replace("_", "-")