Skip to main content
Glama
PagerDuty MCP Server

PagerDuty MCP Server

by wpfleger96

get_users

Retrieve PagerDuty users by name, team, or user ID and return selected profile fields to find the right person or view user details.

Instructions

Get PagerDuty users by filters or get details for a specific user ID.

Call patterns:

  • Search by name: query="Name" with the default context (omit current_user_context; limited to your teams).

  • By team: pass team_ids (implies current_user_context=False, including overriding an explicit True).

  • Do not set current_user_context=False with only query; that errors because team_ids are required in False mode.

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_users"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoLimit the number of results (optional). Not used if `user_id` is provided.
queryNoFilter users whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams). Not a substitute for `team_ids` when context is False. Not used if `user_id` is provided.
includeNoList of fields to include in the response. If specified, only these fields will be returned for each user
user_idNoThe user ID to retrieve (optional, cannot be used with any other filters).
team_idsNoFilter results to only users assigned to teams with the given IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `user_id` is provided.
current_user_contextNoUse current user's team IDs to filter (default: True); errors if the current user belongs to no teams. Ignored when `team_ids` are provided (those imply False, even if this is explicitly True). Not used if `user_id` is provided.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv4.1.1
    • changedInput schema / properties / current_user_context / description
      Previous value: -"Use current user's team IDs to filter (default: True); errors if the current user belongs to no teams. Not used if `user_id` is provided."New value: +"Use current user's team IDs to filter (default: True); errors if the current user belongs to no teams. Ignored when `team_ids` are provided (those imply False, even if this is explicitly True). Not used if `user_id` is provided."
    • changedInput schema / properties / query / description
      Previous value: -"Filter users whose names contain the search query (optional). Not used if `user_id` is provided."New value: +"Filter users whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams). Not a substitute for `team_ids` when context is False. Not used if `user_id` is provided."
    • changedInput schema / properties / team_ids / description
      Previous value: -"Filter results to only users assigned to teams with the given IDs (optional, cannot be used with current_user_context). Not used if `user_id` is provided."New value: +"Filter results to only users assigned to teams with the given IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `user_id` is provided."
  2. Changed1 schema field changedv4.0.7
    • changedInput schema / properties / current_user_context / description
      Previous value: -"Use current user's team IDs to filter (default: True). Not used if `user_id` is provided."New value: +"Use current user's team IDs to filter (default: True); errors if the current user belongs to no teams. Not used if `user_id` is provided."
  3. 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 user"
      +}
  4. Changed12 schema fields changedv3.1.4
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / current_user_context / description
      Added value: +"Use current user's team IDs to filter (default: True). Not used if `user_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 `user_id` is provided."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • addedInput schema / properties / query / description
      Added value: +"Filter users whose names contain the search query (optional). Not used if `user_id` is provided."
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • addedInput schema / properties / team_ids / description
      Added value: +"Filter results to only users assigned to teams with the given IDs (optional, cannot be used with current_user_context). Not used if `user_id` is provided."
    • removedInput schema / properties / team_ids / title
      Removed value: -"Team Ids"
    • addedInput schema / properties / user_id / description
      Added value: +"The user ID to retrieve (optional, cannot be used with any other filters)."
    • removedInput schema / properties / user_id / title
      Removed value: -"User Id"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  5. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose key failure modes: current_user_context errors when the current user belongs to no teams, query-only requests in False mode error, and team_ids silently overrides an explicit True. It does not cover return shape or pagination behavior, though an output schema exists to carry that.

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?

One front-loaded purpose sentence followed by three tight bullets, each encoding a distinct usage rule. No filler, and the constraint most likely to cause an error is stated last where it reads as a guardrail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter read tool with a fully documented schema and an output schema, the description covers the main failure modes and the argument interplay an agent could trip over. Minor gaps remain around multi-filter combinations (e.g., query with team_ids) and limit behavior, but nothing essential is missing.

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 description coverage is 100%, so every parameter including the team_ids/current_user_context override interaction is already documented in the schema. The call-pattern section consolidates those interactions usefully but introduces no meaning the schema does not already state; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource ("Get PagerDuty users") and distinguishes the two retrieval modes: filtered listing versus single-user lookup by ID. It does not explicitly contrast with siblings such as list_users_oncall, but the resource boundary is clear enough for an agent to select correctly.

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?

The "Call patterns" block spells out concrete when-to-use recipes (search by name with default context, filter by team_ids) and an explicit when-not-to-use rule: never combine current_user_context=False with only query, because team_ids are required. That is exactly the routing and exclusion guidance an agent needs.

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