Skip to main content
Glama

PagerDuty MCP Server

by wpfleger96

get_incidents

Retrieve PagerDuty incidents by applying filters or fetch details for a specific incident ID. Filter by status, services, teams, or time range, and include notes or related incidents for comprehensive incident management.

Instructions

Get PagerDuty incidents by filters or get details for a specific incident ID or number.

Args: incident_id (str): The incident ID or number to retrieve (optional, cannot be used with any other filters). current_user_context (bool): Filter by current user's context (default: True). Not used if incident_id is provided. service_ids (List[str]): Filter by services (optional, excludes current_user_context). Not used if incident_id is provided. team_ids (List[str]): Filter by teams (optional, excludes current_user_context). Not used if incident_id is provided. statuses (List[str]): Filter by status (optional). Not used if incident_id is provided. Must be input as a list of strings, valid values are ["triggered", "acknowledged", "resolved"]. since (str): Start of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if incident_id is provided. until (str): End of query range in ISO8601 format (default range: 1 month, max range: 6 months). Not used if incident_id is provided. limit (int): Max results (optional). Not used if incident_id is provided. include_past_incidents (Optional[bool]): If True and incident_id is provided, includes similar past incidents in the response. Defaults to False. Cannot be used without incident_id. include_related_incidents (Optional[bool]): If True and incident_id is provided, includes related incidents impacting other services/responders in the response. Defaults to False. Cannot be used without incident_id. include_notes (Optional[bool]): If True, includes notes for each incident in the response. Defaults to False.

Input Schema

NameRequiredDescriptionDefault
current_user_contextNo
incident_idNo
include_notesNo
include_past_incidentsNo
include_related_incidentsNo
limitNo
service_idsNo
sinceNo
statusesNo
team_idsNo
untilNo

Input Schema (JSON Schema)

{ "properties": { "current_user_context": { "default": true, "title": "Current User Context", "type": "boolean" }, "incident_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Incident Id" }, "include_notes": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "title": "Include Notes" }, "include_past_incidents": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "title": "Include Past Incidents" }, "include_related_incidents": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "title": "Include Related Incidents" }, "limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Limit" }, "service_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Service Ids" }, "since": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Since" }, "statuses": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Statuses" }, "team_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Team Ids" }, "until": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Until" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wpfleger96/pagerduty-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server