Skip to main content
Glama
Rootly MCP server

Rootly MCP server

Official
by rootlyhq

List Incident Roles

list_incident_roles
Read-only

Retrieve role assignments for an incident to see who is Commander, Scribe, or postmortem owner; omit the incident ID to list the roles your organization defines.

Instructions

List role assignments for an incident (who is Commander, Scribe, etc.).

Without incident_id, lists the incident roles the organization defines (name, slug, summary, enabled), for "what roles do we have?".

Returns one entry per defined role with role metadata and the assigned user (or user_id: null for roles that are defined on the incident but not yet assigned). Use this to answer questions like "who is the incident commander?", "is there a postmortem owner?", or "list all roles for INC-4460".

Implementation note: this wraps GET /v1/incidents/{id}?include=roles and flattens the JSON:API included array of incident_role_assignments into a flat table so callers don't need to walk the relationships graph.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_incident_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
incident_idNoIncident reference whose role assignments to list. Accepts: UUID, bare sequential number (4460), #4460, or INC-4460. Omit to list the roles the organization defines instead.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.0.0
    • addedInput schema / properties / incident_id / default
      Added value: +""
    • changedInput schema / properties / incident_id / description
      Previous value: -"Incident reference whose role assignments to list. Accepts: UUID, bare sequential number (4460), #4460, or INC-4460."New value: +"Incident reference whose role assignments to list. Accepts: UUID, bare sequential number (4460), #4460, or INC-4460. Omit to list the roles the organization defines instead."
    • removedInput schema / required
      Removed value: -[
      -  "incident_id"
      -]
  2. Addedv2.4.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the read-only, non-destructive profile, and the description adds real context beyond them: one entry per defined role, `user_id: null` for defined-but-unassigned roles, and an implementation note explaining the JSON:API `included` flattening. That tells the agent what the shape and edge cases look like, not just that it is a safe read.

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?

Front-loaded with the dual-mode purpose and scoped by example questions; every sentence is relevant. The implementation note about JSON:API flattening is the longest block, though it earns some of its space by explaining why the output is flat.

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 single-optional-parameter read tool with an output schema, the definition covers both calling modes, the shape of the returned entries, the unassigned-role edge case, and the underlying data source. Nothing material is left for the agent to guess.

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 the parameter's description already enumerates accepted formats (UUID, bare number, #4460, INC-4460) and the omit-to-list-catalog behavior. The description reinforces the mode semantics but adds no syntax or format detail beyond the schema, so the 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?

States a specific verb and resource ("List role assignments for an incident") and immediately distinguishes the two modes: per-incident assignments vs. the organization's defined role catalog. An agent knows exactly what this returns without opening the schema.

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?

Explicitly gives the selection rule between the two modes ("Without `incident_id`, lists the incident roles the organization defines... for 'what roles do we have?'") and supplies concrete user-facing questions it answers. It does not name a sibling tool as an alternative (e.g., get_incident, which may also expose roles), so a small gap remains.

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

Deploy Server

Other Tools