On-Call Health

v0.4.1
io.github.Rootly-AI-Labs/oncallhealth-mcp Checked 3 days ago Published 1 month ago

On-call burnout analysis: team risk summaries, at-risk responders, daily health trends.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_integrations Validate Integrations

Check that every connected integration has valid credentials. Call this before starting an analysis. Returns per-integration validation status (GitHub, Slack, Jira, Linear) and an all_valid flag.

ParameterTypeDescription
force_refreshbooleanBypass the backend cache and re-check every token.

integrations_list Integrations List

List connected integrations (Rootly, GitHub, Slack, Jira, Linear).

oncall_users Oncall Users

Get the users currently on call for a Rootly integration. Cross-reference the returned emails with analysis data (for example get_at_risk_users) to see whether anyone currently on call is at risk.

ParameterTypeDescription
integration_id *integerRootly integration ID from integrations_list.

analysis_current Analysis Current

Get the most recent analysis for the current account. Returns metadata only (status, timestamps, configuration). Use analysis_summary with the returned id for the team overview.

analysis_run Analysis Run

Start a new health analysis, wait for it to finish, and return the summary. Runs as a background task for clients that support the MCP Tasks extension and inline otherwise. Progress messages report the analysis status while waiting. On timeout the analysis keeps running on the backend; use analysis_status with the reported analysis_id to pick it up later.

ParameterTypeDescription
days_backintegerNumber of days of on-call data to analyze (1-365).
include_weekendsbooleanInclude weekend activity in the analysis.
integration_idRootly integration ID from integrations_list; omit for default.
wait_timeout_secondsintegerHow long to wait for completion before giving up.

analysis_start Analysis Start

Start a new health analysis without waiting for it. Poll analysis_status until status is "completed", then use analysis_summary. Prefer analysis_run when you want a single call that waits for the result.

ParameterTypeDescription
days_backintegerNumber of days of on-call data to analyze (1-365).
include_weekendsbooleanInclude weekend activity in the analysis.
integration_idRootly integration ID from integrations_list; omit for default.

analysis_status Analysis Status

Get the status and metadata of an analysis.

ParameterTypeDescription
analysis_id *integerAnalysis ID (see analysis_current).

analysis_summary Analysis Summary

Get a condensed team summary of a completed analysis. Returns team averages, the risk-level distribution and the five most and least at-risk members. Use analysis_results only when you need every field.

ParameterTypeDescription
analysis_id *integerAnalysis ID (see analysis_current).

analysis_results Analysis Results

Get the full raw results for a completed analysis. WARNING: Returns complete data for 80+ members with ~40 fields each and may overwhelm a context window. Prefer analysis_summary, get_at_risk_users or member_daily_health unless you need every field.

ParameterTypeDescription
analysis_id *integerAnalysis ID (see analysis_current).

get_at_risk_users Get At Risk Users

Get users at or above a health-risk threshold with their external IDs. Use this to identify at-risk responders and correlate them with Rootly, PagerDuty, Slack or GitHub using the returned platform IDs. Results are sorted by OCH score, highest risk first.

ParameterTypeDescription
analysis_id *integerAnalysis ID (see analysis_current).
include_risk_levelsarrayRisk levels to include.
min_och_scorenumberMinimum OCH score to include (0-100).

get_safe_responders Get Safe Responders

Get users with low health risk who could take additional on-call shifts. Use this to find replacement responders when removing at-risk users from schedules. Results are sorted by OCH score, healthiest first.

ParameterTypeDescription
analysis_id *integerAnalysis ID (see analysis_current).
limitintegerMaximum users to return.
max_och_scorenumberMaximum OCH score to include (0-100).

check_users_risk Check Users Risk

Check health risk for specific users by their Rootly user IDs. Use this after fetching a schedule from Rootly to see whether any scheduled responders are at risk. A user is at risk when their OCH score is at or above min_och_score or their risk level is medium or high.

ParameterTypeDescription
analysis_id *integerAnalysis ID (see analysis_current).
rootly_user_ids *arrayRootly user IDs to check.
min_och_scorenumberOCH score at or above which a user is at risk.

member_daily_health Member Daily Health

Get the day-by-day health breakdown for one team member. Shows per-day health scores, incident counts and after-hours activity over the analysis period (only days with data are included).

ParameterTypeDescription
analysis_id *integerAnalysis ID (see analysis_current).
member_email *stringEmail address of the member.