def METHOD_NAME(mc_id, filter_prefix, filter_tags):
    payload = {"Id": mc_id}
    # Just a filter_prefix or just a single tag filter is a special case
    if filter_prefix and not filter_tags:
        payload["Filter"] = {"Prefix": filter_prefix}
    elif not filter_prefix and len(filter_tags) == 1:
        payload["Filter"] = {"Tag": ansible_dict_to_boto3_tag_list(filter_tags)[0]}
    # Otherwise we need to use 'And'
    elif filter_tags:
        payload["Filter"] = {"And": {"Tags": ansible_dict_to_boto3_tag_list(filter_tags)}}
        if filter_prefix:
            payload["Filter"]["And"]["Prefix"] = filter_prefix
    return payload