Skip to main content
Glama

PagerDuty MCP Server

by wpfleger96

get_oncalls

Retrieve current or historical on-call schedules or policies for teams or users. Filter by specific schedules, users, or escalation policies, and define time ranges for accurate on-call tracking.

Instructions

List on-call entries for schedules, policies, or time ranges.

Behavior varies by time parameters:

  1. Without since/until: Returns current on-calls Example: get_oncalls(schedule_ids=["SCHEDULE_123"])
  2. With since/until: Returns all on-calls in range Example: get_oncalls(schedule_ids=["SCHEDULE_123"], since="2024-03-20T00:00:00Z", until="2024-03-27T00:00:00Z")

Args: current_user_context (bool): Use current user's team policies (default: True) schedule_ids (List[str]): Filter by schedules (optional) user_ids (List[str]): Filter by users (optional, excludes current_user_context) escalation_policy_ids (List[str]): Filter by policies (optional) since (str): Start of query range in ISO8601 format (default: current datetime) until (str): End of query range in ISO8601 format (default: current datetime, max range: 90 days in the future). Cannot be before since. limit (int): Max results (optional) earliest (bool): Only earliest on-call per policy/level/user combo (optional)

Input Schema

NameRequiredDescriptionDefault
current_user_contextNo
earliestNo
escalation_policy_idsNo
limitNo
schedule_idsNo
sinceNo
untilNo
user_idsNo

Input Schema (JSON Schema)

{ "properties": { "current_user_context": { "default": true, "title": "Current User Context", "type": "boolean" }, "earliest": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Earliest" }, "escalation_policy_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Escalation Policy Ids" }, "limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Limit" }, "schedule_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Schedule Ids" }, "since": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Since" }, "until": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Until" }, "user_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "User Ids" } }, "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