def METHOD_NAME(self, request, mtype='error', detail=False, agent=True):
    self.check(request, mtype)
    if agent and mtype:
        mtype = self.prefix(mtype)
    keys = [[request, self.dbid, self.thread_name, mtype]]
    options = {'reduce':False}
    if detail:
        options.update({'include_docs': True})
    docs = self.db.loadView(self.design, self.threadview, options, keys)
    return docs