def METHOD_NAME(mr_type: int, olids: list[str], primary: str | None = None) -> str:
    if mr_type == CommunityEditsQueue.TYPE['WORK_MERGE']:
        primary_param = f'&primary={primary}' if primary else ''
        return f'/works/merge?records={",".join(olids)}{primary_param}'
    elif mr_type == CommunityEditsQueue.TYPE['AUTHOR_MERGE']:
        return f'/authors/merge?key={"&key=".join(olids)}'
    return ''