⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
monte-carlo-analyze-root-cause
|
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
// README
Analyze Root Cause Skill
Investigate data incidents and find root causes using Monte Carlo's observability data. Guides the agent through systematic investigation: alert lookup, lineage tracing, ETL checks, query analysis, and data profiling.
What it does
- Investigates freshness delays, volume anomalies, schema changes, ETL failures, query regressions, and field metric drift
- Maps blast radius using table and field-level lineage
- Traces bad data upstream to find the source
- Correlates changes (query modifications, volume shifts, ETL failures) with incident timeline
- Profiles actual data when a database MCP connector is available
- Matches findings against a catalog of known root cause patterns
MCP Tools Required
Connect to Monte Carlo's MCP server (integrations.getmontecarlo.com/mcp). The skill uses these tools:
| Tool | Purpose |
|---|---|
get_alerts | Fetch incident/alert details |
search | Find tables by name |
get_asset | Table metadata and fields |
get_asset_lineage | Table-level lineage |
get_field_lineage | Field-level lineage (trace to source column) |
get_table_freshness | Update/freshness history |
get_table_size_history | Row count and size history |
get_queries | Read/write query history for a table, or the queries an ETL job ran |
get_query_changes | Detect SQL text modifications |
get_query_rca | Failed/futile/missed query analysis |
get_change_timeline | Unified change timeline |
get_etl_issues | ETL pipeline issues (Airflow, dbt, Databricks) — pass platform param |
get_etl_jobs | Find ETL jobs writing to tables (Airflow, dbt, Databricks) — pass platform param |
get_github_prs | Recent GitHub PRs (via MC's GitHub integration) |
get_jobs_performance | Job runtime stats, failure rates, trends |
alert_assessment | Optional ~2-min triage of an incident (HIGH/MEDIUM/LOW confidence + impact) |
run_troubleshooting_agent | Starts the Troubleshooting Agent (TSA) on an incident; auto-invoked when an incident UUID is present |
get_troubleshooting_agent_results | Polls TSA results for an incident |
Credits:
alert_assessmentandrun_troubleshooting_agentconsume Monte Carlo credits the same way the Troubleshooting Agent does when launched from the Monte Carlo UI.
Optional: A database MCP server (Snowflake, BigQuery, Redshift) for direct SQL queries.
Example prompts
- "Investigate alert 12345"
- "Why is the orders table stale?"
- "Row count dropped 50% on analytics.prod.revenue — what happened?"
- "Debug this freshness issue on our daily pipeline"
- "The dashboard shows yesterday's data — can you find out why?"
Investigation flow
Intake (alert ID or user description)
↓
Auto-invoke TSA (if incident UUID + not opt-out + not narrow check) ─┐
↓ │
Map blast radius (upstream + downstream lineage) │ TSA runs
↓ │ async in
Investigate by issue type (freshness / volume / schema / ETL / query) │ parallel
↓ │
Check upstream causes (walk lineage chain) ── poll TSA #1 ────────────┤
↓ │
Profile data (if DB connector available) │
↓ │
Check code changes (GitHub MCP or MC query changes) │
↓ │
Synthesize: root cause + evidence + impact + fix ── poll TSA #2 ─────┘
+ merge findings
When intake has no incident UUID, when the user explicitly opts out, or when the request is a narrow scoped check (e.g. "is X stale right now?"), TSA is skipped and the manual flow runs alone.
Reference files
| File | Description |
|---|---|
references/freshness-investigation.md | Freshness delay playbook |
references/volume-investigation.md | Volume anomaly playbook |
references/schema-investigation.md | Schema change playbook |
references/etl-failure-investigation.md | ETL failure playbook |
references/query-change-investigation.md | Query modification playbook |
references/field-anomaly-investigation.md | Field metric drift playbook |
references/data-exploration.md | SQL patterns for data profiling |
references/intake-no-incident.md | Intake flow when no incident ID |
references/common-root-causes.md | Catalog of known root cause patterns |
// HOW IT'S BUILT
// FILES
2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
skills/analyze-root-cause/SKILL.md7.8 KBupstream ↗
--- name: monte-carlo-analyze-root-cause description: | Investigate data incidents and find root causes using Monte Carlo's observability data. Guides the agent through systematic investigation: alert lookup, lineage tracing, ETL checks, query analysis, and data profiling. Activates when a user asks about data issues, incidents, alerts, or why data looks wrong. bucket: Incident Response version: 1.0.0 --- # Monte Carlo Root Cause Analysis Skill This skill helps investigate data incidents — freshness delays, volume anomalies, schema changes, field metric drift, and ETL failures — by guiding the agent through a systematic investigation using Monte Carlo's MCP tools. It combines observability metadata with optional direct data querying to find the root cause. > **Monte Carlo tool routing (required):** Always call Monte Carlo MCP tools through this plugin's > bundled server, whose fully-qualified tool names are > `mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__<tool>` (e.g. > `mcp__plugin_mc-agent-toolkit_monte-carlo-mcp__get_alerts`). Bare tool names used in this skill > (`get_alerts`, `search`, `get_table`, …) refer to that bundled server. If the session also has a > separately-configured `monte-carlo-mcp` server, do **not** route to it — it may point at a > different endpoint or credentials. Reference files live next to this skill file. **Use the Read tool** (not MCP resources) to access them: - Investigation playbooks by issue type: `references/<type>-investigation.md` - Data exploration patterns: `references/data-exploration.md` - Intake when no incident ID: `references/intake-no-incident.md` - Common root cause catalog: `references/common-root-causes.md` ## When to activate this skill Activate when the user: - Mentions a Monte Carlo alert, incident, or anomaly - Asks "why is this table stale?" or "why did row count drop?" - Wants to investigate a data quality issue - Asks about freshness, volume, or schema problems - Mentions pipeline failures (Airflow, dbt, Databricks) - Says things like "debug this alert", "investigate this incident", "root cause analysis" ## When NOT to activate this skill Do not activate when the user is: - Creating monitors (use the monitoring-advisor skill) - Investigating agent-monitor alerts (agent evaluation, agent metric, agent trajectory, agent validation) or AI-agent traces/conversations (use the `monte-carlo-troubleshoot-agent-traces` skill — read `../troubleshoot-agent-traces/SKILL.md`) - Running impact assessments before code changes (use the prevent skill) - Looking at storage costs (use the storage-cost-analysis skill) - Exploring pipeline performance without a specific incident (use the performance-diagnosis skill) ## Prerequisites **Required:** Monte Carlo MCP server (`integrations.getmontecarlo.com/mcp`) must be configured and authenticated. **Optional but recommended:** - **Database MCP server** (Snowflake, BigQuery, Redshift, Databricks) — enables direct SQL queries for deeper data investigation. Without this, the skill can still analyze using MC's metadata tools but cannot profile actual data. - **GitHub MCP server** — enables searching for recent PRs that may have caused the issue. Without this, the skill falls back to MC's query change detection. ## MCP Tools Used ### From Monte Carlo MCP server | Tool | Purpose | |------|---------| | `get_alerts` | Fetch incident/alert details | | `search` | Find tables by name or keyword | | `get_table` | Table metadata and fields | | `get_asset_lineage` | Table-level upstream/downstream lineage | | `get_field_lineage` | Field-level lineage (trace bad data to source column) | | `get_table_freshness` | Table update/freshness history | | `get_table_size_history` | Row count and size history | | `get_queries_for_table` | Read/write query history | | `get_query_changes` | Detect SQL text modifications | | `get_query_rca` | Root cause analysis for failed/futile/missed queries | | `get_etl_issues` | ETL pipeline issues — pass `platform` ("airflow", "dbt", or "databricks") | | `get_etl_jobs` | Find ETL jobs that write to specific tables — pass `platform` param | | `get_github_prs` | Recent GitHub PRs from the account's MC GitHub integration | | `get_jobs_performance` | Job runtime stats, failure rates, 7-day trends | | `get_change_timeline` | Unified timeline: query changes + volume + ETL failures | | `alert_assessment` | Optional ~2-min triage of an incident — returns HIGH/MEDIUM/LOW confidence and impact. Useful when you want a quick read before deciding to escalate to TSA. | | `run_troubleshooting_agent` | Starts the Troubleshooting Agent (TSA) on an incident. Async by default; idempotent (returns existing results unless `force_rerun=True`). Auto-invoked at Step 1.5 when an incident UUID is present. | | `get_troubleshooting_agent_results` | Polls TSA results for an incident (`status` is `not_found` / `running` / `success` / `failed`). Use to check on the async run started at Step 1.5. | > **Credits:** `alert_assessment` and `run_troubleshooting_agent` consume Monte Carlo credits the same way the Troubleshooting Agent does when launched from the Monte Carlo UI. Each fresh `run_troubleshooting_agent` call is a billable run; reuse via the built-in idempotency (don't pass `force_rerun=True` unless the user explicitly asks for a fresh analysis). ### Optional external MCP tools | Tool | Purpose | |------|---------| | Database MCP (Snowflake, BigQuery, etc.) | Run SQL queries for data profiling | | GitHub MCP | Search for recent PRs (alternative to MC's `get_github_prs` — useful if the account has no MC GitHub integration) | --- ## Workflow ### Step 1: Understand the problem (intake) **If the user provides an alert or incident ID:** 1. Call `get_alerts` with the alert ID to fetch details. 2. Identify: affected table(s), issue type (freshness, volume, schema, field metric), when it started. 3. Proceed to Step 2. **If the user describes a problem WITHOUT an incident ID:** Read `references/intake-no-incident.md` for the full intake flow. In short: 1. Ask clarifying questions: what table? what looks wrong? when did it start? 2. Search for the table: `search(query="table_name")` 3. Search for related alerts: `get_alerts` with a recent time range. Pass ISO 8601 timestamps computed from the current date — e.g. `created_after="2026-07-03T00:00:00Z"`, `created_before="2026-07-10T00:00:00Z"` for a 7-day window (use the actual current date). 4. Check table health: `get_table_freshness`, `get_table_size_history` 5. Narrow down the issue type and proceed to Step 2. ### Step 1.5: Auto-invoke TSA (when applicable) When intake produces a Monte Carlo **incident UUID**, kick off the Troubleshooting Agent (TSA) **before** continuing to Step 2. TSA runs the same root-cause analysis the Monte Carlo UI uses; running it here in parallel with the manual investigation usually beats running either path alone. **Skip TSA when any of these is true:** 1. **No incident UUID.** `run_troubleshooting_agent` requires a UUID. The no-incident intake path (`references/intake-no-incident.md`) does not feed TSA. If that path later identifies a matching alert, return to Step 1 with the alert's incident UUID — Step 1.5 then applies normally. 2. **Narrow scoped check.** The user wants a single fact, not an investigation. Examples: "is `analytics.orders` stale right now?", "what's the row count of X?", "show me the schema of Y", "did this query run today?". Answer the question with the relevant tool and stop. TSA is overkill for these. 3. **Explicit user opt-out.** The user says "skip TSA", "don't run TSA", "manual only", "just do it yourself", or similar. Honor the opt-out and proceed to Step 2 without invoking TSA. **Default invocation (async, parallel):** ``` run_troubleshooting_agent(incident_id="<uuid>", async_mode=True) ``` - The tool is **idempotent** by default: if a previous successful TSA run exists for this incident, it returns those results immediately. Do **not**README.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/monte-carlo-data-mc-agent-toolkit-skills-analyze-root-cause.md