PagerDuty MCP Server

by wpfleger96
Verified

list_escalation_policies

List existing escalation policies based on the given criteria.

Args: current_user_context (bool): Whether to use the current user's ID/team IDs context (default: True, cannot be used with user_ids or team_ids) query (str): Filter escalation policies whose names contain the search query (optional) user_ids (List[str]): Filter results to only escalation policies that include the given user IDs (optional, cannot be used with current_user_context) team_ids (List[str]): Filter results to only escalation policies assigned to teams with the given IDs (optional, cannot be used with current_user_context)

Returns: Dict[str, Any]: Dictionary containing metadata (count, description) and a list of escalation policies matching the specified criteria

Input Schema

NameRequiredDescriptionDefault
current_user_contextNo
queryNo
team_idsNo
user_idsNo

Input Schema (JSON Schema)

{ "properties": { "current_user_context": { "default": true, "title": "Current User Context", "type": "boolean" }, "query": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Query" }, "team_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Team Ids" }, "user_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "User Ids" } }, "title": "list_escalation_policiesArguments", "type": "object" }