Skip to main content
Glama
PagerDuty MCP Server

PagerDuty MCP Server

by wpfleger96

get_escalation_policies

Retrieve PagerDuty escalation policies by specific policy ID, user, team, or name query to inspect escalation rules and routing details.

Instructions

Get PagerDuty escalation policies by filters or get details for a specific policy ID.

Call patterns:

  • Default: omit filters (uses current user's policies/teams).

  • By IDs: pass user_ids and/or team_ids (implies current_user_context=False, including overriding an explicit True).

  • By name: pass query with the default context (limited to your teams/policies); do not set current_user_context=False with only query.

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": "get_escalation_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoLimit the number of results (optional). Not used if `policy_id` is provided.
queryNoPolicies whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams/policies). Not a substitute for `user_ids`/`team_ids` when context is False. Not used if `policy_id` is provided.
includeNoList of fields to include in the response. If specified, only these fields will be returned for each escalation policy
team_idsNoPolicies assigned to these team IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `policy_id` is provided.
user_idsNoPolicies that include these user IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `policy_id` is provided.
policy_idNoThe escalation policy ID to retrieve (optional, cannot be used with any other filters).
current_user_contextNoUse current user's ID/team IDs context (default: True). Ignored when `user_ids` or `team_ids` are provided (those imply False, even if this is explicitly True). Not used if `policy_id` is provided.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv4.1.1
    • changedInput schema / properties / current_user_context / description
      Previous value: -"Use current user's ID/team IDs context (default: True). Not used if `policy_id` is provided."New value: +"Use current user's ID/team IDs context (default: True). Ignored when `user_ids` or `team_ids` are provided (those imply False, even if this is explicitly True). Not used if `policy_id` is provided."
    • changedInput schema / properties / query / description
      Previous value: -"Policies whose names contain the search query (optional). Not used if `policy_id` is provided."New value: +"Policies whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams/policies). Not a substitute for `user_ids`/`team_ids` when context is False. Not used if `policy_id` is provided."
    • changedInput schema / properties / team_ids / description
      Previous value: -"Policies assigned to these team IDs (optional, excludes current_user_context). Not used if `policy_id` is provided."New value: +"Policies assigned to these team IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `policy_id` is provided."
    • changedInput schema / properties / user_ids / description
      Previous value: -"Policies that include these user IDs (optional, excludes current_user_context). Not used if `policy_id` is provided."New value: +"Policies that include these user IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `policy_id` is provided."
  2. Changed1 schema field changedv4.0.1
    • addedInput schema / properties / include
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "List of fields to include in the response. If specified, only these fields will be returned for each escalation policy"
      +}
  3. Changed14 schema fields changedv3.1.4
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / current_user_context / description
      Added value: +"Use current user's ID/team IDs context (default: True). Not used if `policy_id` is provided."
    • removedInput schema / properties / current_user_context / title
      Removed value: -"Current User Context"
    • addedInput schema / properties / limit / description
      Added value: +"Limit the number of results (optional). Not used if `policy_id` is provided."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • addedInput schema / properties / policy_id / description
      Added value: +"The escalation policy ID to retrieve (optional, cannot be used with any other filters)."
    • removedInput schema / properties / policy_id / title
      Removed value: -"Policy Id"
    • addedInput schema / properties / query / description
      Added value: +"Policies whose names contain the search query (optional). Not used if `policy_id` is provided."
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • addedInput schema / properties / team_ids / description
      Added value: +"Policies assigned to these team IDs (optional, excludes current_user_context). Not used if `policy_id` is provided."
    • removedInput schema / properties / team_ids / title
      Removed value: -"Team Ids"
    • addedInput schema / properties / user_ids / description
      Added value: +"Policies that include these user IDs (optional, excludes current_user_context). Not used if `policy_id` is provided."
    • removedInput schema / properties / user_ids / title
      Removed value: -"User Ids"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  4. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose important context behavior: default context uses current user's policies/teams, user_ids/team_ids imply current_user_context=False and override an explicit True, and query works with the default context. It does not cover auth, rate limits, or read-only nature beyond the verb 'Get', so it is strong but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded purpose followed by structured call patterns. The bullets are efficient and every line adds relevant usage guidance without unnecessary wording.

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?

Given seven optional parameters, clear schema descriptions, and an output schema, the description supplies the behavior an agent needs: default mode, ID mode, name-query mode, context override rules, and the policy_id detail path. Remaining details such as limit and include are adequately covered by the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds meaningful conditional semantics beyond the schema alone, especially the interaction between user_ids/team_ids and current_user_context, and the restriction on using query with current_user_context=False without IDs.

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: get PagerDuty escalation policies by filters or details for a specific policy ID. The resource is unambiguous and distinguishable from sibling tools such as get_incidents, get_schedules, and get_teams.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly defines call patterns: default with no filters, lookup by user_ids/team_ids, and lookup by query. It also gives a clear prohibition: do not set current_user_context=False with only query.

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