Skip to main content
Glama

RootCause MCP

Медицинские рассуждения, дифференциальная диагностика и клинический RCA-инструментарий для любого MCP-совместимого ИИ-агента.

Python 3.12+ MCP SDK 2.0 Tools Status License

English | 繁體中文

Миссия

RootCause MCP позволяет универсальным агентам, таким как Claude Code, Codex, Cline, OpenCode, OpenClaw и агенты Z.ai, выполнять специализированный рабочий процесс:

  1. Инвентаризировать и извлекать деидентифицированные клинические документы через хост-агента.

  2. Регистрировать доказательства, привязанные к источнику, с точными необработанными фрагментами, сохранять верное источнику время и добавлять авторизованные проверки источника/деидентификации/независимости.

  3. Строить максимально разумный механистический дифференциальный диагноз для фенотипа и временного течения, явно выбирать рабочую ведущую гипотезу, затем связывать доказательства, привязанные к источнику, используя прямые отношения правдоподобия только тогда, когда отдельная проверенная литературная запись устанавливает количественную калибровку.

  4. Относиться к неизвестным как к входным данным для рассуждений и фиксировать для каждого кандидата обоснование, подтверждающие/опровергающие/нейтральные доказательства, дискриминатор, качественную уверенность и предвзятость.

  5. Связывать диагностические рассуждения с Fishbone и 5-Why, получать авторизованное заключение HFACS-MES для каждой причины и проводить консервативный аудит обязательств по доказательству причинности.

  6. Создавать типизированный, машиночитаемый отчет с явной родословной источников и детерминированными результатами соответствия.

Агент выполняет рассуждения. MCP-сервер не проверяет скрытые состояния модели или необработанные приватные цепочки мыслей. Он предоставляет схемы, ограничения рабочего процесса, персистентность, вычисления и аудиторские записи для рассуждений, которые агент явно решает экстернализовать.

Для вывода, ориентированного на клиницистов, встроенный рендерер Markdown поддерживает пояснительный текст на традиционном китайском, сохраняя канонические названия диагнозов, тестов, лекарств, устройств и процедур на английском. Точные цитаты из источников, единицы измерения, идентификаторы, коды, значения JSON/FHIR и язык пользовательских шаблонов никогда не переводятся машинно.

Этот проект не является медицинским устройством и не должен автономно диагностировать или лечить пациентов. Клиническое использование требует квалифицированного человеческого обзора, локального управления, контроля конфиденциальности и независимой проверки исходных документов.

Related MCP server: SafetyOps MCP Server

Статус MVP

Детерминированная граница финального отчета реализована: вложенные разделы отчета типизированы, каждый отчет несет машиночитаемые conformance_checks[], а небезопасная финализация блокируется при сбоях источника, DDx, корневой родословной, заключения о причинности, рецензента или целостности. Финальные снимки несут рецензента, время с учетом часового пояса, пересчитываемый хэш SHA-256 и рекурсивно отклоняют мутацию.

Широта DDx теперь явная, а не выводимая из количества: агент выбирает подходящий для синдрома фреймворк, просматривает каждую каноническую ячейку и сохраняет ПЕРВИЧНЫЙ аудит широты. REVIEWED_INSUFFICIENT_DATA сохраняет неизвестные и типизированные дискриминаторы; NOT_ASSESSED блокирует финализацию. Аудит устанавливает документированное покрытие, а не клиническую корректность.

Финальное соответствие также несет полный журнал проверок источников с добавлением только и пересчитывает его финальную проекцию инвентаря, родословную независимости, явный выбор ведущего диагноза, калиброванные по источнику связи LR, верную источнику временную семантику, проверку HFACS по каждой причине, факты руководства/готовности, количество пробелов и родословную Why/корень/причинность. Дата, диапазон, относительное и неизвестное время могут оставаться в допустимом финальном артефакте, но не могут быть молча отсортированы или использованы для установления временности.

Релиз 2.0.0a3 (2026-08-19) по-прежнему является инженерной альфой, а не клинически валидированным MVP агента. Публичный корпус из шести случаев и раннер являются инженерными справочниками. Формальный результат требует как минимум 3 реальных сред выполнения агента × 6 случаев × 2 повторов, внешних по отношению к репозиторию приватных наборов случаев, отдельно защищенных приватных золотых данных для удержания, изоляции файловой системы, доверенных трассировок MCP времени выполнения/сервера и двух ослепленных квалифицированных клинических рецензентов на задание с урегулированием разногласий. Эта оценка в настоящее время AGENT_EVAL_NOT_ESTABLISHED. См. MVP conformance and evaluation.

Почему этот инструментарий экономит работу

Универсальный агент может прочитать все документы и написать отчет в одном длинном промпте. Такой подход работает, но многократно тратит контекст на схемы инструментов, предыдущие факты, форматирование, арифметику вероятностей, построение графов, проверки полноты и прозу отчета. RootCause MCP переносит эти повторяющиеся операции в детерминированный код, оставляя клиническое суждение агенту.

Работа

Только агентский рабочий процесс

Помощь RootCause MCP

Контекст инструментов

Загрузить все схемы

Профили clinical / rca раскрывают только релевантную поверхность

Результаты инструментов

Перечитывать дублирующий текст и JSON

Полный structuredContent SDK 2.0 плюс компактный текстовый запасной вариант

Количественные связи доказательств

Пересчитывать и описывать

Совместимая арифметика только для калиброванного по источнику прямого LR; в противном случае нейтральная качественная связь

Непрерывность случая

Повторно вводить более ранний разговор

Сохраненный агрегат и повторная гидратация при перезапуске

Сборка отчета

Переписывать DDx, доказательства, пробелы, метрики и графики

Детерминированный артефакт Markdown brief / standard / full

Проверка качества

Помнить каждый пункт чек-листа

Автоматические предупреждения о структурной трассируемости

Token-efficient medical reasoning

Независимые от токенизатора регрессионные фикстуры сравнивают байты схемы профиля инструментов, дублированные текстовые запасные варианты и детерминированную генерацию отчетов. Используйте текущие артефакты CI как источник истины, потому что изменения схемы изменяют эти измерения. Эти байтовые прокси не являются обещаниями относительно конкретного токенизатора модели. Агент все равно должен читать извлеченные источники, генерировать клинически правдоподобные гипотезы, выбирать защитимые связи доказательств и проверять финальный артефакт. Не-нейтральный LR требует отдельной проверенной записи калибровки LITERATURE. Никакая некалиброванная априорная/апостериорная вероятность не может быть представлена как клиническая вероятность или уверенность; LR=1.0 означает нейтральное/количественно неизвестное и не считается поддержкой или опровержением.

Многоконтурное руководство для легковесных (Flash) моделей

Легковесные или быстрые модели (такие как варианты Flash/mini) часто испытывают трудности со сложными клиническими случаями: они склонны делать поспешные выводы, останавливаться после одной гипотезы (преждевременное закрытие), пренебрегать опровергающими тестами и пропускать когнитивные размышления.

RootCause MCP действует как активный конечный автомат рассуждений:

  • Каждый вызов основного инструмента возвращает структурированный полезный guidance, оценивающий состояние случая.

  • Прогресс этапов: Автоматически отслеживает прогресс через EVIDENCE_COLLECTIONDIFFERENTIAL_EXPANSIONBAYESIAN_EVALUATIONCOGNITIVE_AUDITREADY_FOR_SYNTHESIS.

  • Чек-лист готовности: Требует проверенного исходного содержимого, типизированных меток кандидатов, как минимум трех уникальных диагнозов по двум не-UNKNOWN механизмам, применимого диагноза, который нельзя пропустить, распределения доказательств/тестов для каждого активного диагноза, поддержки плюс противоречия или типизированного плана исключения для ведущего/нельзя-пропустить диагнозов, а также явного обзора неопределенности/предвзятости. Это детерминированные нижние границы финализации, а не клиническая цель или предел широты.

  • Директивы следующего промпта: Предоставляет явные next_recommended_actions с точными именами инструментов и сократические push_questions в каждом ответе, позволяя Flash-агентам итеративно зацикливаться до завершения случая.

  • Инструменты аудита: Агенты или внешние оркестраторы могут вызывать rc_audit_differential_breadth для сохранения покрытия фреймворка по каждой ячейке и rc_audit_reasoning_state для проверки оставшихся предварительных условий перед генерацией отчета.

Детерминированное происхождение и родословная данных

Вдохновленный архитектурами происхождения данных и ETL-линейности (такими как модели проверки потоков/источников Airbyte), RootCause MCP устанавливает детерминированное, криптографическое обоснование доказательств без опоры на вероятностную память LLM:

  • Дословные фрагменты и якоря родословной: Записи доказательств фиксируют точные цитаты raw_snippet, пути к файлам, локаторы строк и дайджесты SHA-256.

  • Детерминированная проверка происхождения: Доменный сервис ProvenanceVerifier сканирует физические необработанные файлы на диске (TXT, CSV, HL7, XML) для проверки совпадений подстрок и номеров строк без вызова LLM.

  • Обнаружение подделки и галлюцинаций: Если агент выдумывает цитату, ссылается на недоступный источник или представляет источник, байты которого больше не соответствуют закрепленному манифесту, сервер оставляет доказательство непроверенным и возвращает диагностику аудита.

  • Журнал проверок источников с добавлением только: Закрепленный манифест и дайджест никогда не меняются. Извлечение, деидентификация и независимая/производная родословная продвигаются только через rc_adjudicate_source; каждый финальный источник требует рецензента из белого списка, время, причину и стабильный идентификатор решения.

  • Граница чистой архитектуры: RootCause MCP фокусируется на контрактах рассуждений и проверках происхождения; он не разбирает необработанные PDF, DOCX, изображения, сканы, электронные таблицы или пакеты экспорта EHR.

Хост-агент или одобренный экстрактор должны создавать готовые к цитированию текст/ячейки, сохраняя точное содержимое, местоположения источников, хэши, единицы измерения, отрицания, точность времени, исправления OCR и метод извлечения. Отправляйте в RootCause MCP только структурированные атомарные находки и не заявляйте о проверке MCP для бинарных или недоступных источников.

Ресурсы протоколов, шаблоны и 4-уровневые рассуждения M&M по анестезиологии

Упакованные YAML-протоколы и доменные плейбуки являются версионированными, ненормативными ретроспективными ресурсами DDx, которые встроенный агентный инструментарий предписывает агентам читать. Шаблоны Markdown являются детерминированными входными данными для рендеринга. Пороговые значения готовности и правила пробелов во время выполнения по-прежнему реализованы в Python; редактирование одного YAML-протокола само по себе не меняет эти шлюзы. Эти плейбуки побуждают только к ретроспективному обзору механизмов; они не предоставляют активное ведение, инструкции по лечению/спасению или дозирование для конкретного пациента.

  • Настраиваемые SOP и доменные плейбуки (config/protocols/, config/domains/):

    • anesthesia_mm_rca_protocol.yaml: 4-уровневый обратный причинный фреймворк (Уровень 0 Терминальный ритм → Уровень 1 ACLS 5H5T → Уровень 2 Трипотоковые триггеры [Базовый уровень пациента vs Хирургическое оскорбление vs Фармакология анестезии] → Уровень 3 Скрытые системные пробелы HFACS).

    • perioperative_shock.yaml и toxicology_sedation.yaml: Ненормативные ретроспективные промпты DDx для рассмотрения динамической обструкции выносящего тракта левого желудочка (SAM) и синдрома инфузии пропофола (PRIS), а не протоколы активного ухода.

  • Настраиваемые шаблоны Markdown (config/templates/):

    • anesthesia_mm_rca_report_template.md: Специализированный формат обзора конференции M&M отделения с детерминированным заполнением слотов.

    • clinical_reasoning_report_template.md: Общий отчет о клинических рассуждениях и действиях по безопасности пациентов.

Архитектура

graph TB
    A[General-purpose AI Agent] -->|MCP SDK 2.0| T[8 facade or 25 / 24 / 46 discrete tools]
    D[Clinical documents] --> A

    subgraph Harness
        T --> S[ServerState / case aggregate]
        S --> O[ClinicalReasoningOrchestrator]
        O --> E[Evidence + provenance + hash]
        O --> H[Hypotheses + Bayesian updates]
        O --> R[ReasoningChain]
        O --> G[Clinical Guidance Engine]
        S --> C[ThinkingChain: explicit rationale records]
    end

    E --> DB[(SQLite / SQLModel)]
    H --> DB
    R --> DB
    C --> DB

    S --> CR[CONTRACT report]
    CR --> J[JSON]
    CR --> F[FHIR-compatible DiagnosticReport]
    CR --> M[Deterministic Markdown]

    T --> RCA[Fishbone / 5-Why / HFACS-MES / conservative causation audit]

Medical reasoning harness architecture

Направление зависимостей следует DDD:

Interface -> Application -> Domain <- Infrastructure

Что сохраняется

Сервер SDK 2.0 сохраняет агрегат медицинских рассуждений в SQLite:

  • Структурированные доказательства и метаданные источников

  • Гипотезы дифференциальной диагностики и история байесовских обновлений

  • Явные записи ThinkingStep, предоставленные агентом

  • Аудит-записи ReasoningStep, созданные оркестратором

  • Сессии RCA, манифесты источников, диаграммы Fishbone и деревья Why

Аутентификация, шифрование в состоянии покоя, изоляция арендаторов, авторизация роли рецензента, миграции базы данных и регулируемые средства контроля развертывания должны быть предоставлены средой развертывания до клинического производственного использования. См. Политику PHI и клинических данных.

Быстрый старт и автоматическая установка

🚀 Автоматическая настройка в один клик

Вы можете автоматически обнаружить uv, синхронизировать виртуальные окружения, настроить клиентские MCP-обвязки (нативный для Copilot .mcp.json, .vscode/mcp.json для VS Code, Claude Desktop и Cline) и запустить производственную stdio-диагностику одной командой:

Windows PowerShell:

powershell -ExecutionPolicy Bypass -File scripts/setup.ps1

Linux / macOS / WSL:

chmod +x scripts/setup.sh
./scripts/setup.sh

Команда MCP выполняется на хосте агента или расширения, который запускает сервер. Если VS Code использует WSL, SSH, Dev Container или другой удалённый хост, установите uv и запустите scripts/setup.sh в этом удалённом интегрированном терминале. Запуск setup.ps1 на локальной Windows не устанавливает uv на удалённом хосте. После настройки выполните Developer: Reload Window.

Универсальный Python CLI:

uv run --locked python scripts/install.py --profile all --target all
uv run --locked python scripts/mcp_doctor.py --config all

🔬 Скриптовая регрессия на синтетических сценариях

Запустите шесть встроенных синтетических сценариев (SAM, PRIS, трансфузионная гиперкалиемия, послеоперационная ТЭЛА, всасывание LVAD и отсроченный диагноз). Этот скрипт является регрессией/демо для разработчика, а не заменой нативных приёмочных тестов манифеста/финализации или клинической валидации:

uv run python scripts/run_case_trial.py --case all

Каркас оценки агента

Пробный прогон публичного корпуса проверяет только механику раннера/артефактов и намеренно возвращает AGENT_EVAL_NOT_ESTABLISHED:

eval_output="$(mktemp -d)"
uv run python scripts/run_agent_eval.py dry-run \
  --output-root "$eval_output" \
  --repeats 2

Формальные прогоны должны использовать внешние по отношению к репозиторию частные случаи и отдельно защищённые частные эталонные ответы. Начните с предварительной проверки с отказом по умолчанию:

uv run python scripts/run_agent_eval.py \
  --preflight \
  --matrix /secure/adapter-matrix.json \
  --corpus-file /secure/private-corpus/corpus.json \
  --gold-dir /secure/private-holdout \
  --attest-holdout-isolation \
  --authorize-provider-egress

См. протокол оценки перед любым формальным прогоном. Разрешение на передачу данных применяется только к одобренным деидентифицированным синтетическим входам, никогда к реальным клиническим записям или PHI.

🛠️ Ручная установка и запуск сервера

# Install the locked environment
uv sync --locked --all-extras

# Run the MCP SDK 2.0 stdio server
uv run --locked rootcause-mcp

Copilot CLI и Agent Host читают .mcp.json непосредственно в корне репозитория:

{
  "mcpServers": {
    "rootcauseMcp": {
      "type": "local",
      "command": "uv",
      "args": ["run", "--locked", "rootcause-mcp"],
      "cwd": ".",
      "env": {
        "ROOTCAUSE_TOOL_PROFILE": "all",
        "ROOTCAUSE_RESPONSE_MODE": "compact"
      },
      "tools": ["*"]
    }
  }
}

Редактор VS Code использует .vscode/mcp.json и пересылает его активному Agent Host:

{
  "servers": {
    "rootcauseMcp": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "run",
        "--locked",
        "--directory",
        "${workspaceFolder}",
        "rootcause-mcp"
      ],
      "cwd": "${workspaceFolder}",
      "env": {
        "ROOTCAUSE_TOOL_PROFILE": "all",
        "ROOTCAUSE_RESPONSE_MODE": "compact"
      }
    }
  }
}

Оба файла намеренно используют один и тот же ключ сервера rootcauseMcp, чтобы Agent Host не создавал две MCP-идентичности. Общая конфигурация использует только имя uv, разрешённое через PATH. Никогда не коммитьте C:\...\uv.exe, ROOTCAUSE_DATA_DIR или ROOTCAUSE_AUTHORIZED_REVIEWERS; предоставляйте защищённые значения времени выполнения в окружении хоста. Помещайте несвязанные MCP-серверы в пользовательскую или удалённую конфигурацию VS Code, а не коммитьте личные пути к исполняемым файлам и данным в этот репозиторий.

Copilot Remote spawn ... uv.EXE ENOENT

Это означает, что хост выполнения не может найти настроенный исполняемый файл. В удалённом хосте расширения WSL, SSH или контейнера частой причиной является пересылка локального абсолютного пути Windows. В удалённом терминале VS Code выполните:

uv --version
uv sync --locked --all-extras
uv run --locked python scripts/install.py --profile all --target all \
  --skip-tests --skip-trial
uv run --locked python scripts/mcp_doctor.py --config all

Доктор должен сообщить PASS для обеих конфигураций и их stdio-рукопожатий. Затем выполните Developer: Reload Window, перезапустите rootcauseMcp из MCP: List Servers и используйте MCP: Reset Cached Tools после обновления каталога инструментов. См. официальную справочную документацию по конфигурации MCP в VS Code и конфигурацию MCP для GitHub Copilot CLI.

Переменные окружения:

Переменная

Назначение

По умолчанию

ROOTCAUSE_DATA_DIR

База данных SQLite, контрольные точки, изученные правила и сгенерированные экспорты

Каталог пользовательских данных ОС

ROOTCAUSE_CONFIG_DIR

Необязательное переопределение конфигурации, содержащее hfacs/, domains/, protocols/, templates/

Встроенный rootcause_mcp/config

ROOTCAUSE_SOURCE_ROOTS

Разрешённый список корней, разделённых разделителем путей ОС, для точных проверок происхождения открытого текста

Текущий рабочий каталог

ROOTCAUSE_AUTHORIZED_REVIEWERS

Разделённые запятыми управляемые оператором идентичности, которым разрешено вручную проверять, оценивать источники/HFACS или финализировать

Пусто (ручная проверка/финальное утверждение отключено)

ROOTCAUSE_TOOL_PROFILE

Каталог инструментов: condensed (8 фасадных инструментов), clinical (25), rca (24) или all (46)

all

ROOTCAUSE_RESPONSE_MODE

compact структурированный запасной вариант или verbose JSON-текст

compact

Рабочий процесс агента

Совместимый агент может использовать либо дискретный рабочий процесс с инструментами, либо сверхкомпактный рабочий процесс с 8 фасадами:

Дискретный рабочий процесс с инструментами

rc_start_session(source_manifest={...})
  -> rc_add_evidence(temporal={kind=..., raw_value=...})
  -> rc_adjudicate_source  # each manifest source; authorized append-only review
  -> rc_think_aloud / rc_identify_gaps / rc_challenge_assumption
  -> rc_propose_hypothesis(planned_tests=[...])
  -> rc_audit_differential_breadth(audit={...})
  -> rc_link_evidence_to_hypothesis(calibration_status=...,
                                     calibration_source_ref=...)
  -> rc_select_leading_hypothesis(reason=..., changed_by=...)
  -> rc_get_differential_diagnosis
  -> rc_get_reasoning_chain
  -> rc_detect_conflicts
  -> rc_create_checkpoint
  -> rc_init_fishbone / rc_add_cause / rc_confirm_classification
  -> rc_ask_why / rc_mark_root_cause
  -> rc_verify_causation  # conservative audit, not clinical causal proof
  -> rc_generate_contract_report(format="markdown", detail_level="standard",
                                  locale="zh-TW", audience="clinician", finalize=false)

Сверхкомпактный фасадный рабочий процесс (профиль из 8 инструментов)

rc_rca(action="session_start")
  -> rc_evidence(action="add")
  -> rc_rca(action="session_adjudicate_source")
  -> rc_thinking(action="think" / "gap" / "challenge" / "reflect")
  -> rc_hypothesis(action="propose" / "audit_breadth" / "link" / "select_leading" / "rank")
  -> rc_audit(action="stage_guidance" / "detect_conflicts")
  -> rc_checkpoint(action="create")
  -> rc_diagram(action="timeline" / "validate")
  -> rc_report(action="preview")

rc_propose_hypothesis (или rc_hypothesis(action="propose")) записывает mechanism_category, diagnostic_role, reasoning_basis, качественную certainty, клиническое обоснование, альтернативы, неизвестные, специфичные для кандидата, и типизированные планируемые тесты. Стройте максимально разумное количество различных механизмов; три диагноза — это минимальный порог финализации, а не цель или предел рассуждений. Это явные записи, созданные агентом, а не выгрузка скрытых рассуждений модели.

Со встроенным рендерером locale="zh-TW" и audience="clinician" создают обсуждение на традиционном китайском с английскими каноническими медицинскими названиями и расширенным представлением доказательств/неизвестных/тестов на уровне кандидата. Пользовательские шаблоны сохраняют свой авторский язык; данные JSON и FHIR не переводятся.

См. Руководство по интеграции агента для примеров полезных нагрузок.

Расширенные возможности MCP SDK 2.0

RootCause MCP использует весь спектр примитивов MCP SDK 2.0 для максимальной эргономики агента:

1. 🧰 Конденсация инструментов (8 унифицированных фасадных инструментов)

При использовании ROOTCAUSE_TOOL_PROFILE=condensed рекламируемая поверхность консолидируется в 8 полиморфных фасадных инструментов, что снижает накладные расходы на обнаружение/схему. Несколько административных операций остаются только дискретными; встроенная обвязка перечисляет точное сопоставление и передаёт ту же сессию соответствующему профилю, а не молча пропускает их:

  • rc_evidence: Добавить, получить или проверить физическое происхождение.

  • rc_hypothesis: Предложить кандидатов, проверить широту фреймворка, связать доказательства, явно выбрать ведущего, проверить или исключить.

  • rc_thinking: Записать клиническое обоснование, поразмышлять о когнитивных искажениях, выявить пробелы или оспорить предположения.

  • rc_audit: Запросить многоцикловые рекомендации, проверить полноту рассуждений или обнаружить противоречия/упущения.

  • rc_report: Сгенерировать детерминированные контрактные отчёты или экспортировать артефакты аудита.

  • rc_diagram: Отрисовать хронологические временные линии событий, проверить синтаксис Mermaid или экспортировать графы.

  • rc_checkpoint: Создать, перечислить или восстановить снимки состояния случая с проверкой целостности.

  • rc_rca: Маршрутизировать проверку сессии/источника, а также традиционные рабочие процессы Fishbone (6M), 5-Why и HFACS-MES.

2. 📚 Статические и динамические ресурсы MCP

Изучайте знания предметной области и состояния случаев с нулевыми накладными расходами на вызовы инструментов:

  • Статические URI протоколов и шаблонов (19 ресурсов в снимке 2.0.0a3):

    • clinical://contracts/case-input-manifest: каноническая схема передачи данных из нескольких источников.

    • clinical://contracts/case-analysis-report: каноническая стандартизированная схема выходных данных.

    • clinical://protocols/anesthesia-mm-rca-protocol: СОП обратных каузальных рассуждений 4-го уровня.

    • clinical://protocols/clinical-reasoning-sop: Основное руководство по диагностическому расследованию.

    • clinical://protocols/non-death-adverse-event-protocol: Протокол анализа барьеров для почти-ошибок и неблагоприятных событий.

    • clinical://protocols/timeline-patterns: Определения временных паттернов, верных источникам.

    • clinical://templates/anesthesia-mm-rca-report-template: Шаблон отчёта в Markdown.

    • clinical://templates/clinical-reasoning-report-template: Общий шаблон отчёта о клинических рассуждениях.

    • clinical://templates/clinician-ddx-discussion-zh-tw: Шаблон обсуждения дифференциальной диагностики на традиционном китайском для клиницистов.

    • clinical://templates/near-miss-adverse-event-rca-template: Шаблон «швейцарского сыра» и анализа отказов барьеров.

    • clinical://domains/*: 9 ненормативных ретроспективных руководств по дифференциальной диагностике: anaphylaxis-crisis, anesthesia-perioperative-arrest, delayed-diagnosis-systems, difficult-airway-crisis, local-anesthetic-toxicity, lvad-mechanical-crisis, pediatric-opioid, perioperative-shock и toxicology-sedation.

  • Динамические шаблоны ресурсов случаев (4 в снимке 2.0.0a3):

    • clinical://sessions/{session_id}/report: Текущий отрисованный отчёт о случае.

    • clinical://sessions/{session_id}/timeline: Текущая хронологическая временная линия событий.

    • clinical://sessions/{session_id}/guidance: Текущий этап рассуждений, контрольный список и сократические наводящие вопросы.

    • clinical://sessions/{session_id}/conflicts: Текущий аудит противоречий, парадоксов и упущений.

3. 🎯 Предварительно настроенные клинические промпты MCP (5)

Запускайте стандартизированные рабочие процессы клинического расследования одним щелчком в Claude Desktop, VS Code или Cline:

  • anesthesia_mm_investigation: Обратное расследование анестезиологических осложнений и смертности 4-го уровня.

  • perioperative_crisis_differential: Расширение дифференциальной диагностики кризиса с триажем 5H5T.

  • near_miss_barrier_analysis: Анализ барьеров «швейцарского сыра» для нефатальных неблагоприятных событий RCA.

  • delayed_diagnosis_investigation: Исследование диагностической траектории и когнитивных искажений.

  • clinician_ddx_discussion_zh_tw: Общее обсуждение дифференциальной диагностики на традиционном китайском для клиницистов с максимально разумной широтой механизмов, явными неизвестными, привязанными к источникам подтверждающими/опровергающими/нейтральными доказательствами, различающими тестами и качественной определённостью.

4. 🧠 Инструкции уровня сервера и мета-промпт

Сервер автоматически предоставляет системные мета-инструкции во время рукопожатия MCP, закрепляя ИИ-агентов за строгим обоснованием источников, обратными каузальными рассуждениями 4-го уровня, тестированием опровергающих гипотез и прозрачностью когнитивных искажений.

Каталог инструментов

Категория

Кол-во

Назначение

Когнитивная прозрачность

5

Явное обоснование, рефлексия, пробелы, допущения, извлечение цепочки рассуждений

Доказательства и происхождение

3

Добавление, извлечение и проверка структурированных доказательств с исходными фрагментами и хешем SHA-256

Дифференциальная диагностика

6

Предложение, аудит широты фреймворка, привязка доказательств, явный выбор ведущей гипотезы, проверка и исключение гипотез

Цепочка рассуждений и руководство

3

Извлечение цепочки действий аудита, экспорт диаграмм и аудит завершённости рассуждений

Анализ пробелов и обнаружение конфликтов

1

Обнаружение диагностических противоречий, парадоксальных реакций на лекарства и пропусков мониторинга

Контрольные точки кейса

3

Создание, восстановление и перечисление JSON-снимков кейсов с проверкой целостности

Отчёт CONTRACT

1

Генерация предварительного или финального (после проверок) JSON, совместимого с FHIR, или детерминированного вывода в Markdown

Таксономия HFACS-MES

6

Предложение, подтверждение, проверка, обучение, перезагрузка и сопоставление классификаций

Управление сеансами

5

Запуск, добавление решений по рецензированию источников, извлечение, перечисление и архивирование сеансов RCA с сохранением в SQLite

Диаграмма Исикавы (6M)

4

Инициализация, добавление причин, проверка и экспорт

Дерево «Почему» (анализ 5 «Почему»)

6

Запрос «почему», проверка, перекрёстные связи, отметка корневых причин, экспорт и обучение (с сохранением в SQLite)

Верификация и диаграммы

3

Консервативный аудит причинности, аудитор синтаксиса Mermaid и рендерер временной шкалы

Итого (отдельные)

46

Предоставляет 46 отдельных инструментов в all, 25 в clinical, 24 в rca или 8 унифицированных фасадов в condensed

Визуализация результатов

Артефакт

Машиночитаемый вывод

Вывод диаграммы

Диаграмма Исикавы

JSON

Макет Исикавы 6M в Mermaid с хребтом, причинами и подпричинами

Дерево «Почему»

JSON

Иерархия в Mermaid с корневыми причинами и перекрёстными причинными связями

Цепочка рассуждений

JSON

Упорядоченный аудиторский след в Mermaid со ссылками на доказательства/гипотезы

Граф доказательств

CONTRACT JSON nodes / edges

Встроенный граф поддержки/противоречий в Mermaid

Временная шкала событий

JSON events / таблица Markdown

timeline в Mermaid с клиническими фазами и временными метками

Контрольные точки качества

Репозиторий и CI определяют следующие инженерные контрольные точки:

uv run pytest -W error::ResourceWarning
uv run ruff check .
uv run ruff format --check .
uv run mypy src --ignore-missing-imports
uv run bandit -c pyproject.toml -r src --severity-level low --confidence-level medium
uv run vulture src tests --min-confidence 80
uv export --frozen --no-dev --no-emit-project --no-hashes --quiet --output-file requirements-audit.txt
uvx --from "pip-audit==2.9.0" pip-audit --strict --requirement requirements-audit.txt
uv build
uvx --from "twine==6.2.0" twine check dist/*

Используйте текущий прогон CI и артефакты релиза как источник истины для количества тестов, покрытия, результатов проверки безопасности и результатов упаковки. Эти инженерные контрольные точки проверяют поведение программного обеспечения; они не устанавливают клиническую производительность или клиническую валидность Agent.

Структура проекта

src/rootcause_mcp/
├── domain/          # Entities, value objects, repository contracts, services
├── application/     # Case aggregate, orchestration, progress guidance
├── infrastructure/  # SQLModel repositories and safe export paths
├── interface/       # MCP tool schemas and handlers
└── server_v2.py     # Sole MCP SDK 2.0 entry point

Документация

Исследования и атрибуция

Дизайн ссылается на общедоступные работы по клиническим рассуждениям, RCA, FHIR, происхождению данных, причинному выводу и оценке Agent. Датированный обзор исследований определяет границы продукта; отчёты по репозиториям фиксируют, чему можно научиться, как следует интегрировать и цитировать базовый пакет, а также какие лицензионные ограничения или ограничения на использование данных запрещают прямое повторное использование.

Лицензия

Лицензия Apache 2.0. См. LICENSE.

Available Tools

21 tools
rc_add_causeB

Add a cause to a Fishbone category. Each cause can have sub-causes, evidence, and HFACS classification.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID
categoryYesThe 6M category for this cause
descriptionYesDescription of the cause
sub_causesNoList of sub-causes (optional)
hfacs_codeNoHFACS classification code (optional)
evidenceNoSupporting evidence (optional)

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It fails to disclose side effects (e.g., whether it modifies the session state), return behavior, error conditions, or dependencies. The description only repeats information already available in the parameter schema without adding behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the primary action. It is not verbose, and every word serves a purpose. However, it could benefit from a brief structured layout for clarity, such as separating the primary action from optional details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, no output schema, and no annotations, the description is too sparse. It omits crucial context such as the need for a prior session, error handling, and the meaning of HFACS classification. A more complete description would explain typical usage and expected outcomes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, granting a baseline of 3. The description adds minimal meaning beyond the schema: it mentions sub-causes, evidence, and HFACS classification, which are already defined as optional parameters. No constraints or relationships between parameters are explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Add' and the resource 'cause to a Fishbone category', distinguishing it from siblings like rc_add_causal_link or rc_init_fishbone. It also lists optional attributes (sub-causes, evidence, HFACS classification), making the tool's function precise and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not specify when to use this tool versus alternatives (e.g., rc_add_causal_link). No context about prerequisite actions (like initializing a session or fishbone) or typical workflow is provided, leaving the AI agent to infer usage from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_archive_sessionB

Archive a completed RCA session. Archived sessions are preserved but marked as inactive.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID to archive

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully disclose behavioral traits. It mentions that archived sessions are preserved but marked inactive, but does not disclose potential side effects, reversibility, permissions required, or impacts on related data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single succinct sentence that front-loads the key information. Every word contributes meaning, and there is no unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one parameter and no output schema, the description is minimally adequate. However, it lacks details about the behavior of archiving (e.g., whether it can be undone, impact on list views, or related links).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single parameter 'session_id', and the description adds no additional meaning beyond the schema. The baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool archives a completed RCA session, specifying the resource (RCA session) and action (archive). However, it does not differentiate from sibling tools, but since no other archive tool exists, this is acceptable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description only implies that the session should be completed before archiving, but does not provide explicit guidance on when to use this tool vs alternatives, nor does it mention any prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_ask_whyA

Ask 'Why?' to drill down into root causes using 5-Why analysis. Creates or extends a WhyChain for the session. Each call goes one level deeper (up to 5 levels). This is the CORE tool for systematic root cause reasoning.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID
answerYesThe answer to 'Why?'. This becomes the basis for the next question. Example: 'Because the nurse miscalculated the dose'
parent_node_idNoOptional: ID of parent node to branch from. If not provided, continues from the last node or creates first Why.
evidenceNoSupporting evidence for this answer (optional)
initial_problemNoThe initial problem statement. Required only for the FIRST Why in a chain.

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description takes on the full burden. It discloses the key behavioral aspect: each call goes one level deeper up to 5 levels. It does not describe the output format or what happens after the 5th level, but overall it is fairly transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, each earning its place: first states purpose, second explains behavior with constraints, third emphasizes importance. No fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description should hint at the return value. It does not describe what the tool returns after each call. It covers the reasoning flow well but omits output expectations, making it slightly incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents each parameter. The description adds value by explaining the role of 'initial_problem' (required only for first Why) and the default behavior of 'parent_node_id', which clarifies usage beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Ask Why?'), the resource ('drill down into root causes using 5-Why analysis'), and distinguishes from siblings by labelling itself 'the CORE tool for systematic root cause reasoning.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains that each call goes one level deeper (up to 5 levels) and that it creates or extends a WhyChain, giving clear context for when to use it. However, it does not explicitly mention when not to use it or compare to alternative tools like rc_add_cause or rc_get_why_tree.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_build_teaching_caseA

Transform a completed Why Tree into a teaching-ready lesson plan. Generates learning objectives, common pitfalls, discussion prompts, and reverse-causality questions for medical learners.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID
learner_levelNoTarget learner levelmedical_student
formatNoOutput formatmarkdown

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full responsibility. It describes outputs but does not disclose side effects (e.g., whether the tool modifies the session), required permissions, or any limitations. The behavior is not fully transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no wasted words. The main purpose is front-loaded, and every sentence adds value by listing outputs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 3 parameters with 100% schema coverage and no output schema, the description adequately explains the tool's function and outputs. However, it could be more specific about the output format (though format param exists) and does not state dependencies like authentication or session validity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description does not add additional meaning beyond the schema; the parameters are straightforward, and the description focuses on outputs rather than parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description specifies the verb 'Transform' and the resource 'completed Why Tree into a teaching-ready lesson plan', and lists the generated outputs (learning objectives, pitfalls, etc.). It clearly distinguishes from sibling tools like export functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool should be used when a Why Tree is completed, but does not explicitly state when to use it versus alternatives like rc_export_why_tree, nor does it provide exclusions or prerequisites beyond the tree being complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_confirm_classificationA

Confirm an HFACS classification as correct. This helps the system learn from expert decisions and improve future suggestions. Confirmed classifications are stored as learned rules.

ParametersJSON Schema
NameRequiredDescriptionDefault
descriptionYesThe original cause description
hfacs_codeYesThe confirmed HFACS code (e.g., 'UA-S', 'PC-C-PMC', 'EF-RE')
reasonYesBrief explanation of why this classification is correct
session_idNoOptional session ID for tracking
confidenceNoConfidence level (0.0-1.0)

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that confirmed classifications are stored as learned rules, which is a key behavioral trait (side effect). This helps the agent understand the learning impact. It could mention irreversibility or permission requirements, but the disclosure is adequate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description consists of two concise, front-loaded sentences with no wasted words. Every sentence adds value: action statement, learning purpose, and storage behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of output schema, the description does not explain the return value, but the action is simple. It covers the core purpose and key behavior. It could mention that the tool requires a prior suggestion or that the reason parameter is used for traceability, but it is sufficiently complete for a straightforward confirmation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so each parameter already has a description. The tool description adds no additional meaning beyond what the schema provides, earning the baseline score of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action 'Confirm an HFACS classification as correct' and specifies the resource. It explains the higher-level purpose: helping the system learn and improving future suggestions, distinguishing it from sibling tools like rc_suggest_hfacs and rc_list_learned_rules.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implicitly indicates that this tool should be used when a classification needs to be confirmed and stored as a learned rule. It provides context for learning but does not explicitly state when not to use it or mention alternatives. However, given sibling tools, the usage is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_export_fishboneB

Export Fishbone diagram in various formats. Supports Mermaid, JSON, and Markdown formats.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID
formatNoExport formatmermaid

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description only hints at non-destructive behavior (export) but does not disclose details like whether the session must be active, potential side effects, or error conditions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with two short sentences, no unnecessary details, and front-loaded with the core purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool with no output schema, the description is adequate but incomplete: it does not specify the output format or behavior on errors, which would be helpful.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions for both parameters. The description adds context by listing the supported formats, which matches the enum, but does not provide additional meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool exports a Fishbone diagram in specific formats (Mermaid, JSON, Markdown), which distinguishes it from sibling tools like rc_get_fishbone (retrieves data) and rc_export_why_tree (exports a different diagram type).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like rc_get_fishbone or rc_export_why_tree. The description lacks context about prerequisites or scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_export_why_treeB

Export Why Tree in various formats. Supports Mermaid (flowchart), JSON, and Markdown.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID
formatNoExport formatmermaid

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully convey behavior. It states 'Export' but does not specify if the operation is synchronous, generates a file, returns a string, or has any side effects. The behavioral details are minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences covering the essential action and supported formats. No unnecessary words or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Lacks critical info about the output: does the tool return a downloadable file, a string, or something else? Without an output schema, the description should clarify the nature of the export result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and clearly describes both parameters. The description simply echoes the format options, adding no new semantic depth beyond what the enum already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool exports a 'Why Tree' and lists the supported formats (Mermaid, JSON, Markdown). It distinguishes from sibling tools like rc_get_why_tree (retrieval) and rc_export_fishbone (different diagram type).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The purpose is clear but no explicit guidance on when to use this tool versus alternatives like rc_get_why_tree for retrieval or other export tools. Usage is implied but without conditional or exclusionary context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_get_6m_hfacs_mappingA

Get mapping between 6M Fishbone categories and HFACS codes. Shows how Fishbone categories (Personnel, Equipment, Material, Process, Environment, Monitoring) correspond to HFACS levels. Useful for cross-framework analysis and ensuring comprehensive coverage. Also provides Why Tree depth guidance for each category.

ParametersJSON Schema
NameRequiredDescriptionDefault
categoryNoOptional: specific 6M category to retrieve mapping for. If not specified, returns all mappings.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. States it provides mapping and Why Tree depth guidance, but lacks details on permission requirements, rate limits, or response format. Adds value beyond schema but not extensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with action, no wasted words. Efficiently covers purpose, details, and context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Without output schema, description adequately explains the type of information returned (mapping and depth guidance). Given low complexity, it is sufficiently complete, though could elaborate on the output structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with parameter description already explaining the default behavior. Description does not add new information about parameter beyond what schema provides, so baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool retrieves mappings between 6M Fishbone categories and HFACS codes, lists all six categories, and explains it shows correspondence. This distinguishes it from sibling tools like rc_get_fishbone or rc_get_hfacs_framework.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Indicates use for cross-framework analysis and comprehensive coverage, giving clear context. Does not explicitly state when not to use or compare to siblings, but the purpose is sufficiently clear for appropriate selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_get_fishboneB

Get the complete Fishbone diagram for a session. Returns all categories and causes in structured format.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, and the description only indicates it returns the diagram. It does not disclose whether the operation is read-only, behavior on invalid session IDs, or any side effects. The 'get' prefix implies idempotency but is not explicitly stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences efficiently convey purpose and output. Every word is necessary with no fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple getter with one parameter and no output schema, the description is minimally adequate. It lacks details on output structure, error handling, and how it differs from similar retrieval tools among 20+ siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one parameter (session_id) with 100% schema coverage. The description adds no additional meaning beyond the schema's 'The session ID' – no format, examples, or constraints. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves the complete Fishbone diagram for a session, returning all categories and causes in a structured format. It uses specific verbs and resource naming, and implicitly distinguishes from export or other retrieval tools like rc_get_why_tree.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives such as rc_get_session or rc_get_why_tree. The description does not provide any exclusions, prerequisites, or context for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_get_hfacs_frameworkA

Get HFACS-MES framework structure and category definitions. Use this to understand the classification hierarchy and criteria.

ParametersJSON Schema
NameRequiredDescriptionDefault
levelNoOptional: specific level to retrieve (EF, OI, US, PC, UA). If not specified, returns all levels.

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description implies a read operation but does not explicitly state read-only nature, response details, or any constraints beyond parameter behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with purpose, no extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple retrieval tool with one optional parameter and no output schema, the description fully covers purpose and parameter semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, baseline 3. Description adds clarity by noting the default behavior when not specified ('returns all levels'), which goes beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool retrieves the HFACS-MES framework structure and category definitions, with a specific verb ('Get') and resource. It distinguishes from sibling tools that add causes or links.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description suggests using it to understand classification hierarchy but does not explicitly state when to use vs alternatives or when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_get_sessionA

Get details of an RCA session by ID. Returns session status, current stage, and progress.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID to retrieve

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states the tool returns session status, stage, and progress, but does not disclose whether it is read-only, idempotent, or any potential side effects. Basic behavioral context is present, but not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that efficiently conveys the purpose and output. It is front-loaded with the action and resource, with no redundant or extraneous content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple retrieval tool with one parameter, the description adequately covers what it does and what it returns. It does not address error handling or edge cases, but given the low complexity, it is reasonably complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a single parameter 'session_id' described as 'The session ID to retrieve'. The description adds no additional meaning, constraints, or examples beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves session details by ID and specifies the returned data (status, stage, progress). It distinguishes itself from sibling tools like rc_list_sessions (which lists sessions) and rc_start_session (which creates).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly state when to use this tool versus alternatives (e.g., after obtaining a session ID from rc_list_sessions). It lacks guidance on prerequisites, exclusions, or context for when this tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_get_why_treeA

Get the complete Why Tree (5-Why analysis chain) for a session. Shows all Why questions and answers in hierarchical format.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must convey behavioral traits. It describes a read operation (get, shows) and implies no side effects, but does not explicitly state it is non-destructive or discuss permissions. This is acceptable for a simple retrieval but not fully transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences that front-load the core action and output. Every sentence adds value with no redundancy or extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the single parameter, no output schema, and low complexity, the description sufficiently explains what the tool returns. The sibling list adds context, but the description alone is adequate for a simple retrieval tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The parameter 'session_id' is already described in the schema with full coverage. The description adds no further meaning about the parameter format or constraints beyond what the schema provides, meeting the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it gets the complete Why Tree for a session, specifying the format (5-Why analysis chain, hierarchical). This differentiates it from sibling tools like rc_get_fishbone or rc_export_why_tree.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives like rc_get_fishbone or rc_get_hfacs_framework. The context implies it is for viewing the Why Tree but lacks exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_init_fishboneA

Initialize a Fishbone (Ishikawa) diagram for a session. Creates a 6M structure (Personnel, Equipment, Material, Process, Environment, Monitoring) with the problem statement as the fish head.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID to create fishbone for
problem_statementYesThe problem statement (fish head)

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, and description does not disclose behavioral traits such as idempotency, side effects on existing fishbone for the same session, or required permissions. For a mutation tool, this is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences that front-load the core purpose and key structural detail (6M categories). No redundant words. Efficient and clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the main action and structure created. For a parameter-light, no-output-schema tool, it is mostly complete. However, could mention what happens if a fishbone already exists for the session (overwrite vs error) and return behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters have descriptions (session_id and problem_statement) that explain their roles. The tool description adds context about the 6M structure but does not enhance parameter-level meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the verb 'Initialize' and describes creating a Fishbone diagram with a 6M structure and problem statement as fish head. Distinguishes from siblings like rc_get_fishbone (retrieval) and rc_add_cause (modification).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage (for starting a new fishbone diagram) but no explicit guidance on when to use vs siblings like rc_start_session or rc_get_fishbone. Lacks 'when not to use' or alternative suggestions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_list_learned_rulesA

List all learned classification rules. Shows rules that have been confirmed by experts.

ParametersJSON Schema
NameRequiredDescriptionDefault
hfacs_codeNoOptional: filter by specific HFACS code
min_confidenceNoMinimum confidence threshold

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses that only rules confirmed by experts are returned, which is a key behavioral trait. However, with no annotations, it lacks details on authorization, pagination, or complete behavior. The description adds value beyond annotations but is not thorough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise with two short sentences, front-loading the purpose. Every word earns its place, though a bit more structure (e.g., bullet points) could improve scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and two simple filters, the description is adequate but could mention return format, sorting, or pagination. It provides enough context for a basic list tool but lacks completeness for complex scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% (both parameters have descriptions in the schema). The tool description does not add any additional meaning beyond what the schema already provides, so it meets the baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'List' and identifies the resource as 'learned classification rules', adding that these are confirmed by experts. This clearly distinguishes it from sibling tools like rc_reload_rules or rc_suggest_hfacs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for viewing confirmed rules but provides no explicit guidance on when to use this tool versus alternatives such as rc_get_hfacs_framework or rc_get_session. No prerequisites or exclusions are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_list_sessionsA

List all RCA sessions with optional filters. Returns summary of all sessions.

ParametersJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by session status
case_typeNoFilter by case type
limitNoMaximum number of sessions to return

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description only says 'Returns summary of all sessions'. It does not disclose behavioral traits such as side effects, authentication needs, or rate limits. For a read-only list tool, this is minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with two front-loaded sentences. Every word is necessary and adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the low complexity of a list tool with optional filters, the description adequately covers the purpose and return type. However, with no output schema, it could briefly mention that it returns a summary (not full details), which it does. Nearly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with clear parameter descriptions in the input schema. The description only adds 'with optional filters' which adds no extra meaning beyond the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'List all RCA sessions with optional filters', providing a specific verb (list) and resource (RCA sessions). It distinguishes itself from siblings like rc_get_session by implying a list versus a single session.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for listing sessions but does not explicitly state when to use it versus alternatives or provide any exclusion criteria. No guidance on when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_mark_root_causeB

Mark a WhyNode as the identified root cause. This indicates the analysis has reached a fundamental cause that requires action.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID
node_idYesThe WhyNode ID to mark as root cause
confidenceNoConfidence level (0.0-1.0)

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It only says it 'indicates the analysis has reached a fundamental cause that requires action', but does not disclose what changes occur, e.g., if the node is locked, if effects are reversible, or if confirmation is needed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action, no extraneous words. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 3 parameters, no output schema, and no annotations, the description is minimally adequate but lacks behavioral and usage context that would fully inform an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description does not add any meaning beyond the schema—it doesn't explain the confidence parameter or how to choose the node_id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Mark' and the resource 'WhyNode as the identified root cause', and distinguishes this from sibling tools like rc_add_cause or rc_confirm_classification by specifying the action of marking the root cause.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool vs alternatives, such as rc_confirm_classification or rc_add_cause. It does not specify prerequisites or situations where marking a root cause is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_reload_rulesA

Reload classification rules from YAML files. Use this after manually editing config files.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description bears full responsibility for disclosing behavior. It states the action (reload from YAML) but does not mention potential side effects (e.g., overwriting existing rules, validation errors). The description is adequate but lacks depth about what happens during reload.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description consists of two concise sentences with no unnecessary words. It is front-loaded with the core purpose and provides usage context, making it highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with no parameters and no output schema, the description covers the essential purpose and usage. It could mention potential outcomes (e.g., success messages, error handling) but is still reasonably complete for the task.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero parameters and 100% coverage (since none exist). The description does not need to add parameter information. Following the baseline rule for zero parameters, a score of 4 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Reload') and the resource ('classification rules from YAML files'), distinguishing it from sibling tools that add, confirm, or export classifications. It uses a specific verb and resource, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use the tool: 'after manually editing config files.' This provides clear context for usage, though it does not mention when not to use it or list alternatives. The guidance is sufficient for this simple action.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_start_sessionB

Start a new RCA analysis session. Creates a new session with the specified case type and title. Returns session_id for subsequent operations.

ParametersJSON Schema
NameRequiredDescriptionDefault
case_typeYesType of case being analyzed
case_titleYesBrief title for the case
initial_descriptionNoInitial description of the incident

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description must disclose side effects and behaviors. It only states 'creates a new session' without mentioning auth requirements, potential conflicts, or whether the session is persisted. Minimal transparency for a creation operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no wasted words. Could be slightly improved with structured format (e.g., listing return value separately), but overall concise and clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Explains return value despite no output schema, but missing details on error cases, validation rules for case_type enum, and what happens if required fields are missing. Adequate but not complete for a tool with 3 parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by mentioning return of session_id, but does not elaborate on parameter meaning beyond schema definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it starts a new RCA analysis session with specified case type and title, and returns session_id. This is specific and distinguishes from sibling tools like rc_list_sessions or rc_get_session.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage as the initial step for RCA analysis, but no explicit guidance on when to use versus alternatives like rc_list_sessions or rc_archive_session. No exclusion criteria provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_suggest_hfacsB

Suggest HFACS-MES classification codes for a cause description. Returns ranked suggestions with confidence scores. HFACS-MES has 5 levels: External Factors, Organizational Influences, Unsafe Supervision, Preconditions, Unsafe Acts.

ParametersJSON Schema
NameRequiredDescriptionDefault
descriptionYesThe cause description text to classify
domainNoOptional domain context for better suggestions (e.g., 'anesthesia', 'surgery', 'nursing')
max_suggestionsNoMaximum number of suggestions to return

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so the description must carry full burden. It states the tool returns ranked suggestions with confidence scores and lists HFACS-MES levels, but lacks details on side effects, permissions, or output specifics like the format of suggestions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at two sentences, front-loading the purpose. It efficiently conveys the key function and context, though it could incorporate usage guidelines without adding much length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description provides high-level output info (ranked suggestions with confidence scores) and lists HFACS-MES levels. However, it does not explain confidence scoring or return structure, leaving some gaps in completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All three parameters have descriptions in the input schema (100% coverage). The tool description does not add extra meaning beyond the schema, so baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the tool suggests HFACS-MES classification codes for a cause description and returns ranked suggestions with confidence scores. The description differentiates from sibling tools which involve adding causes, links, sessions, etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives like rc_confirm_classification or rc_get_hfacs_framework. The description does not mention prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rc_verify_causationB

Verify causal relationship between cause and effect using the Counterfactual Testing Framework. Tests: 1) Temporality - Did cause precede effect? 2) Necessity - Would effect occur without cause? 3) Mechanism - Is there a plausible causal pathway? 4) Sufficiency - Is cause alone sufficient for effect?

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID
causeYesThe cause event
effectYesThe effect event
verification_levelNo'standard' tests Temporality+Necessity. 'comprehensive' tests all 4 criteria.standard

TDQS

B3.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are given, so the description carries full burden. It details the four tests but omits behavioral traits like side effects, idempotency, required permissions, or what happens on invalid input. It partially compensates with internal logic but lacks safety/state context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with purpose, and uses a clear list format. Every sentence is informative. Loses a point for lacking structured formatting (e.g., line breaks for the list) but overall efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema is provided, and the description does not explain what the tool returns (e.g., boolean, scores). It also does not describe how session_id is used or caveats about nested objects. Lacks completeness for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description lists the four tests but does not explicitly link them to parameters. The verification_level parameter is already well-described in the schema. The description adds marginal value beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Verify' and the resource 'causal relationship', and lists four specific tests. This distinguishes it from sibling tools like rc_add_causal_link or rc_confirm_classification.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool vs alternatives. Sibling tools exist but no differentiation criteria are provided. The tests imply a verification scenario, but 'when-not' and alternatives are missing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 21 tool updatesv0.1.0
    • First observedrc_add_causal_link
    • First observedrc_add_cause
    • First observedrc_archive_session
    • First observedrc_ask_why
    • First observedrc_build_teaching_case
    • First observedrc_confirm_classification
    • First observedrc_export_fishbone
    • First observedrc_export_why_tree
    • First observedrc_get_6m_hfacs_mapping
    • First observedrc_get_fishbone
    • First observedrc_get_hfacs_framework
    • First observedrc_get_session
    • First observedrc_get_why_tree
    • First observedrc_init_fishbone
    • First observedrc_list_learned_rules
    • First observedrc_list_sessions
    • First observedrc_mark_root_cause
    • First observedrc_reload_rules
    • First observedrc_start_session
    • First observedrc_suggest_hfacs
    • First observedrc_verify_causation

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a distinct aspect of RCA (session management, Fishbone, Why Tree, HFACS, verification, teaching cases). No two tools serve the same purpose, and descriptions clearly differentiate them.

Naming Consistency5/5

All tools follow the rc_verb_noun pattern consistently using snake_case. Verbs like start, get, list, add, ask, export, etc., are predictable and logically applied.

Tool Count4/5

21 tools cover a rich domain comprehensively. While slightly above the ideal range, each tool has a clear role and no redundancy, making the count reasonable for this complex subject.

Completeness3/5

Covers creation, retrieval, and updates well, but lacks deletion or removal operations for causes, links, or classifications. This can hinder correction of mistakes, leaving notable gaps.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides AI-powered medical image analysis tools for LLM agents, enabling tasks such as X-ray classification, interactive segmentation, and visual question answering. It supports multi-step diagnostic reasoning and clinical workflows through a suite of specialized medical AI models.
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to manage virtual clinic data including patients, visits, diagnoses, treatments, lab/radiology orders, and search medical literature and internal knowledge base.
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables privacy-first medical document analysis with multi-perspective AI review. Ingest documents, run consilium reviews, generate doctor letters, and search patient memory—all through natural language.
    Apache 2.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/u9401066/rootcause-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server