def build_content_snippet(suggestion):
    """Build snippet for function autocompletion."""
    name = suggestion["name"]

    if suggestion["func_details"]:
        paramText = ""
        params = suggestion["func_details"]["params"]

        for param in params:
            if not paramText:
                paramText += param["name"]
            else:
                paramText += ", " + param["name"]

        return "{}({})".format(name, paramText)
    else:
        return name