def create_record_context(class_name: str, sys_id: str, result: dict) -> dict:
    """
    Create the context output for commands that operate on a single record.

    Args:
        class_name: The class name of the record used.
        sys_id: The id of the record.
        result: The raw response from the http request.

    Return:
        A dictionary representing the context output for the record.
    """
    context = {
        'ServiceNowCMDB.Record(val.ID===obj.ID)': {
            'Class': class_name,
            'SysID': sys_id,
            'Attributes': result.get('attributes', {}),
            'InboundRelations': result.get('inbound_relations', []),
            'OutboundRelations': result.get('outbound_relations', []),
        }
    }
    return context