Manage slos

From harness/harness-ai · View interactive version

Manage slos is an AI agent skill from the GitHub repository harness/harness-ai. Assist with Harness Service Reliability Management (SRM) tasks that the MCP server currently supports: pulling recent deployments for incident correlation, generating on-call handover reports from deployment/execution history, and drafting operational runbooks. Use when asked about SLOs, error budge

How to use this skill

Skill file

Manage SLOs / SRM

Limitation: The MCP server does not currently expose slo, slo_alert, or

monitored_service resource types. SLO definitions, burn-rate alerts, and monitored-service

configuration must be created and edited via the Harness UI under

Service Reliability Management. This skill covers the parts of the SRM workflow that

are supported via MCP: deployment correlation, on-call handover reports, and operational

runbooks.

What this skill can do via MCP

| Workflow | Supported today |

|---|---|

| Define an SLO or SLI | ❌ Use the Harness UI |

| Configure error-budget / burn-rate alerts | ❌ Use the Harness UI |

| Configure a monitored service | ❌ Use the Harness UI |

| Correlate deployments with an incident | ✅ via execution |

| Summarize recent releases for on-call handover | ✅ via execution, service, environment |

| Draft an operational runbook | ✅ (LLM-authored; pulls context from MCP) |

Instructions

Step 1: Establish Scope

Call MCP tool: harness_list
Parameters:
  resource_type: "project"
  org_id: "<organization>"

Step 2: Incident Triage — Correlate Deployments

When the user reports an active incident:

  1. Identify the affected service and environment.
  2. Pull recent executions that deployed the service.
Call MCP tool: harness_list
Parameters:
  resource_type: "execution"
  org_id: "<organization>"
  project_id: "<project>"
  # filter by service or environment as needed
  1. Correlate incident start time with deployment timestamps.
  2. Pull the failing execution's details:
Call MCP tool: harness_get
Parameters:
  resource_type: "execution"
  resource_id: "<execution_id>"
  org_id: "<organization>"
  project_id: "<project>"
  1. Guide the user through structured RCA: blast radius, suspected root cause, mitigation steps, rollback candidate.

Step 3: On-Call Handover Report

Gather from the user: outgoing/incoming engineers, shift window, owned services.

Pull recent executions and services:

Call MCP tool: harness_list
Parameters:
  resource_type: "execution"
  org_id: "<organization>"
  project_id: "<project>"
Call MCP tool: harness_list
Parameters:
  resource_type: "service"
  org_id: "<organization>"
  project_id: "<project>"

Generate a structured handover covering: active/recent incidents the user describes,

deployments during the shift, services with elevated failure counts, and items

requiring attention.

For SLO burn-rate and error-budget status, direct the user to the SRM UI —

the MCP server does not expose these metrics.

Step 4: Operational Runbook (LLM-Authored)

Gather from the user: service name, team, tech stack, dependencies, SLO targets, common

failure modes.

Structure the runbook with:

Defining SLOs (UI-Only Today)

When the user asks to define an SLO, burn-rate alert, or monitored service, respond:

  1. Gather requirements (service tier, health sources, SLO targets, rolling window, SLI type).
  2. Explain that SLO CRUD is not exposed via MCP today and link the user to the Harness SRM UI.
  3. Offer to draft the SLO spec (name, target %, SLI type, burn-rate thresholds) as text the

user can paste into the UI.

  1. Suggested burn-rate alert windows: 14.4×/1h (page), 6×/6h (ticket), 1×/3d (log).

Examples

Performance Notes

Troubleshooting

"SLO not found" or "Monitored service not found"

Incident correlation missing executions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.