/rootly:api-patternsfrom rootly
Documents Rootly's MCP server and JSON:API REST surface: authentication with Global/Team/User tokens, 253 dynamically generated tools, pagination, filters, rate limits, and error handling.
Ships in rootly. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Rootly exposes a hosted MCP server at mcp.rootly.com built with FastMCP. When accessed through the MCP Gateway, credentials are injected automatically via the Authorization: Bearer header — no manual token handling is required. The MCP server generates its tools dynamically from Rootly's OpenAPI specification -- roughly 253 tools as served by the hosted endpoint (a handful of hand-written "agentic" tools like find_related_incidents plus the bulk generated one-per-endpoint from the REST API, e.g. list_incidents, create_incident, list_services).
The Rootly REST API follows the JSON:API specification (application/vnd.api+json), using page-number-based pagination and relationship includes.
| Token Type | Scope | Use Case |
|---|---|---|
| Global Token | Full organization access | Recommended for MCP gateway integration |
| Team Token | Team-owned resources only | On-call schedules, team escalation policies |
| User Token | Inherits user's Rootly permissions | Individual integrations |
For the MCP Gateway, use a Global Token to ensure all incident management tools work without permission errors.
Generate: Rootly web UI → Account → Manage API Keys → Generate New API Key
When using Rootly through the MCP Gateway, the API token is stored as an org credential and automatically forwarded as:
Authorization: Bearer <org-api-token>
No additional configuration is needed in the MCP tool calls.
| Tool | Description | Key Parameters |
|---|---|---|
find_related_incidents | Finds historically similar incidents using TF-IDF text similarity | incident_id or query string |
suggest_solutions | Mines past incident resolutions to recommend actionable fixes | incident_id or description |
check_responder_availability | Checks whether specific users are scheduled on-call in a date range | user_ids, start_date, end_date |
| Tool | Description | Key Parameters |
|---|---|---|
get_oncall_shift_metrics | Shift metrics grouped by user, team, or schedule | group_by, time range |
get_oncall_handoff_summary | Current/next on-call status plus shift incidents | Schedule context |
get_shift_incidents | Incidents during a specific shift timeframe | severity, status, tags, time range |
| Tool | Description | Key Parameters |
|---|---|---|
list_incidents / search_incidents | List and search incidents | filter[status], filter[severity], page[number], page[size] |
get_incident | Get a single incident | Incident ID |
create_incident | Create a new incident | title, severity_id, team_ids, service_ids |
update_incident | Update an incident's fields | Incident ID |
attach_alert | Attach an alert to an incident | incident_id, alert payload |
list_incident_alerts | List alerts attached to an incident | incident_id |
create_incident_action_item | Create a follow-up action item | incident_id, summary, assigned_to |
list_incident_action_items | List action items on an incident | incident_id |
list_all_incident_action_items | List action items across every incident | -- |
| Tool | Description | Key Parameters |
|---|---|---|
list_alerts | List alerts from integrations | filter[status], page[number], page[size] |
get_alert | Get a single alert | Alert ID |
create_alert | Create an alert | alert payload |
update_alert | Edit an alert (write tier): summary, description, urgency, noise flag, labels, services, ended_at | id (not alert_id) |
| Tool | Description |
|---|---|
list_severities | List severity levels (slug, color, description) |
create_severity | Create a severity level |
list_services | List services in the service catalog |
create_service | Create a service |
list_environments | List environments (production, staging, etc.) |
create_environment | Create an environment |
list_functionalities | List business functionalities mapped to services |
create_functionality | Create a functionality |
list_incident_types | List incident types (bug, outage, performance, etc.) |
create_incident_type | Create an incident type |
list_workflows | List automation workflows |
create_workflow | Create an automation workflow |
| Tool | Description |
|---|---|
list_teams | List teams |
create_team | Create a team |
list_users | List organization users |
get_current_user | Get the current authenticated user's profile |
list_endpoints | Discover all available API endpoints dynamically |
Rootly's REST API uses page-number-based pagination following the JSON:API spec:
| Parameter | Description | Default |
|---|---|---|
page[number] | Page number (1-indexed) | 1 |
page[size] | Results per page | 25 |
page[number]=1, page[size]=50meta.total_count to determine total recordspage[number] until you have all records:
total_pages = ceil(total_count / page_size)page[number] > total_pagesExample: Fetch all open incidents:
list_incidents with page[number]=1, page[size]=50meta.total_count; if 120 total, you need 3 pages (50 + 50 + 20)page[number]=2 and page[number]=3{
"data": [
{
"id": "abc-123",
"type": "incidents",
"attributes": {
"title": "API gateway latency spike",
"status": "in_triage",
"sequential_id": 342
},
"relationships": {
"severity": { "data": { "id": "sev-id", "type": "severities" } },
"services": { "data": [{ "id": "svc-id", "type": "services" }] }
}
}
],
"meta": {
"total_count": 120,
"total_pages": 3,
"current_page": 1
}
}
Call list_incidents with filter[status]=in_triage or filter[status]=detected to find open incidents.
Call list_incidents with filter[severity]=critical (use the slug from list_severities) to focus on the highest-priority incidents.
Rootly uses UUIDs for all resource IDs. Before creating an incident, always:
list_severities → use the matching severity's idlist_services → use the affected service's idlist_teams → use the responding team's idCall list_endpoints to get the current full list of available API endpoints. This is useful when the MCP server has been updated to expose new Rootly API endpoints.
Rootly applies rate limits at the API level. The MCP server does not expose rate limit headers, but:
page[size] to limit response sizes (max 100 per page)| Error | HTTP Code | Cause | Resolution |
|---|---|---|---|
| Invalid API token | 401 | Token missing or expired | Regenerate at Account > Manage API Keys |
| Insufficient permissions | 403 | Team-scoped token used for org-wide resource | Use a Global token for MCP gateway integration |
| Resource not found | 404 | Invalid ID or resource deleted | Call the list tool to verify the resource exists |
| Validation failed | 422 | Missing required field or invalid ID | Check required parameters; call lookup tools for valid IDs |
| Rate limited | 429 | Too many requests | Back off 30-60 seconds; retry |
| Server error | 500 | Rootly API issue | Retry once; check Rootly status page |
list_endpoints to discover tools — The MCP server generates tools dynamically; new endpoints appear automatically after Rootly API updateslist_severities, list_services, and list_teams before creating incidentspage[size]=50 and iterate pages rather than fetching all at oncefind_related_incidents and suggest_solutions often resolve incidents faster than manual investigationfilter[status] and filter[severity] in list_incidents rather than fetching all and filtering locallyWhat SKILL.md sets; muted values are Claude Code's defaults
When authenticating to Rootly, discovering which MCP tool to call, or debugging Rootly pagination, filters, or errors. Use when: rootly api, rootly mcp, rootly token, rootly authentication, rootly pagination, rootly filter, rootly rate limit, rootly tools, rootly connection, rootly endpoint, rootly request, or rootly credentials.
Three short reads, in order
rootly, mcp-server, json-api, incident-management, api-authentication
7 skills in this plugin
/alertsRootly AlertsRootly's alerting layer between monitoring tools and incident management: alert sources (`alerts_source`) and their webhook/email intake, alert routing rules, alert groups (deduplication/noise reduction), alert urgencies, escalation policies, and the acknowledge/resolve actions on an individual alert.
/incidentsRootly IncidentsIncidents, Rootly's primary resource: the incident lifecycle and status transitions, severity levels, the incident field reference, AI-assisted analysis via find_related_incidents and suggest_solutions, action items, alert attachment, and cross-vendor PSA ticket correlation.
/oncallRootly On-CallRootly on-call visibility built on the get_oncall_handoff_summary, get_oncall_shift_metrics, get_shift_incidents, get_oncall_schedule_summary and check_responder_availability tools: schedule and rotation coverage, structured shift handoffs, per-shift incident scoping, shift metric fields, and the burnout risk signals.
/postmortemsRootly PostmortemsRootly postmortems as structured post-incident retrospectives: Rootly's retrospective process/step model (there is no standalone "postmortem" object), per-step status tracking through to completion, action item creation and tracking, and the blameless review practices Rootly's model assumes.
/servicesRootly ServicesThe Rootly service catalog: the real service record (ownership via owner teams/users, Slack channels, dependency modeling via linked service IDs, and third-party links to PagerDuty/Opsgenie/Cortex/Backstage/GitHub/GitLab), service CRUD, incident/uptime charts per service, and how services link back to incidents and alerts. Rootly has no built-in tier/criticality field -- that claim is removed, not renamed.
/workflowsRootly WorkflowsRootly's incident-response automation model: workflow tasks (each with a concrete `task_type` like `create_slack_channel` or `page_rootly_on_call_responders`), the trigger-type/`triggers`-event structure (incident, post_mortem, action_item, alert, pulse, simple), the ID-list based condition/matching fields, and the `enabled` flag used to turn a workflow on or off (there is no separate enable/disable tool).
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin rootlyOther plugins' skills for the same job