> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up PagerDuty in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/pagerduty
Last updated: 2026-11-24

Share PagerDuty with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 17 tools (10 read-only).

---

To give your team PagerDuty in Claude, ChatGPT, Cursor and other AI clients, an admin shares the PagerDuty integration in a Metorial portal, and each person signs in to PagerDuty with their own account. Agents can manage incidents, services, and on-call schedules for infrastructure and application incident response. The integration has 17 tools, 10 read-only, 5 write and 2 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares PagerDuty in a portal and how each person connects
- The 33 OAuth scopes PagerDuty can request, and what each one allows
- How to keep the 10 read-only tools and reject the other 7

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with PagerDuty for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Scoped OAuth** (default) | OAuth | Signs in to PagerDuty after entering `subdomain` |
| **API Key** | API token | `token` |

The portal and `metorial setup` use **Scoped OAuth** unless someone picks another method.

### Scoped OAuth

Before the sign-in, setup asks for:

- `subdomain`: Your PagerDuty subdomain (e.g., "yourcompany" from yourcompany.pagerduty.com)

People sign in to PagerDuty and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `incidents.read` | Read Incidents | Read access to incidents |
| `incidents.write` | Write Incidents | Write access to incidents |
| `services.read` | Read Services | Read access to services |
| `services.write` | Write Services | Write access to services |
| `business_services.read` | Read Business Services | Read access to business services |
| `business_services.write` | Write Business Services | Write access to business services |
| `users.read` | Read Users | Read access to users |
| `users.write` | Write Users | Write access to users |
| `teams.read` | Read Teams | Read access to teams |
| `teams.write` | Write Teams | Write access to teams |
| `schedules.read` | Read Schedules | Read access to on-call schedules |
| `schedules.write` | Write Schedules | Write access to on-call schedules |
| `escalation_policies.read` | Read Escalation Policies | Read access to escalation policies |
| `escalation_policies.write` | Write Escalation Policies | Write access to escalation policies |
| `oncalls.read` | Read On-Calls | Read access to on-call information |
| `tags.read` | Read Tags | Read access to tags |
| `tags.write` | Write Tags | Write access to tags |
| `priorities.read` | Read Priorities | Read access to incident priorities |
| `extensions.read` | Read Extensions | Read access to extensions |
| `extensions.write` | Write Extensions | Write access to extensions |
| `webhook_subscriptions.read` | Read Webhook Subscriptions | Read access to webhook subscriptions |
| `webhook_subscriptions.write` | Write Webhook Subscriptions | Write access to webhook subscriptions |
| `analytics.read` | Read Analytics | Read access to analytics data |
| `audit.read` | Read Audit Records | Read access to audit trail records |
| `event_orchestrations.read` | Read Event Orchestrations | Read access to event orchestration rules |
| `event_orchestrations.write` | Write Event Orchestrations | Write access to event orchestration rules |
| `custom_fields.read` | Read Custom Fields | Read access to custom fields |
| `custom_fields.write` | Write Custom Fields | Write access to custom fields |
| `maintenance_windows.read` | Read Maintenance Windows | Read access to maintenance windows |
| `maintenance_windows.write` | Write Maintenance Windows | Write access to maintenance windows |
| `notifications.read` | Read Notifications | Read access to notifications |
| `incident_workflows.read` | Read Incident Workflows | Read access to incident workflows |
| `incident_workflows.write` | Write Incident Workflows | Write access to incident workflows |

### API Key

To connect, a person enters:

- `token`: PagerDuty REST API key (20-character string)

### Setup settings

Whichever method you pick, setup also asks for:

- `region` (optional): PagerDuty account region (US or EU) One of "us", "eu".

## Use your own PagerDuty OAuth app

With your own OAuth app, people see your company's name on the PagerDuty consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose PagerDuty and copy the **Redirect URI**.

2. **Register the app with PagerDuty**

   Create an OAuth app or client in PagerDuty and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in [OAuth documentation](https://developer.pagerduty.com/docs/user-oauth-token-via-code-grant).

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the PagerDuty integration.

## Admin: share PagerDuty in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose PagerDuty. Under **Auth Method**, keep **Scoped OAuth** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to PagerDuty as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from PagerDuty.

4. **Choose who gets it**

   Add the access groups that should see PagerDuty. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user PagerDuty integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search pagerduty
```

## Employee: connect PagerDuty

### In the portal

1. **Open PagerDuty in the catalog**

   Sign in to your portal and open PagerDuty. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A PagerDuty sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search pagerduty
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Scoped OAuth**. To connect with **API Key** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your PagerDuty connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list pagerduty
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 10 read-only tools, such as `list_teams` and `list_users`, and lose the 5 write tools, such as `send_event` or `create_incident`, and the 2 destructive tools, such as `manage_service` or `manage_business_service`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list pagerduty
metorial tools <integration-id>
metorial call <integration-id> list_priorities -d '{}'
```

`metorial tools` lists the 17 tools, minus any you rejected. `list_priorities` takes no input. It lists all configured incident priorities for the PagerDuty account.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (10)

- `list_teams`: List PagerDuty teams with optional search filtering.
- `list_on_calls`: Query who is currently on-call across schedules, escalation policies, or for specific users.
- `list_escalation_policies`: List PagerDuty escalation policies with optional filtering by name, user, or team.
- `list_schedules`: List PagerDuty on-call schedules with optional search filtering.
- `get_incident`: Get detailed information about a specific PagerDuty incident, including its notes, assignments, alerts, and timeline. Needs `incidentId`.
- `list_services`: List PagerDuty services with optional filtering by team or search query.
- `list_incidents`: List and search PagerDuty incidents with filtering by status, service, team, user, urgency, and time range.
- `get_analytics`: Retrieve aggregated incident analytics from PagerDuty.
- `list_users`: List PagerDuty users with optional search query and team filtering.
- `list_priorities`: List all configured incident priorities for the PagerDuty account.

### Write tools (5)

- `update_incident`: Update a PagerDuty incident — acknowledge, resolve, reassign, change urgency, escalation policy, priority, or add a note. Needs `incidentId` and `fromEmail`.
- `send_event`: Send an alert event or change event to PagerDuty via the Events API v2. Needs `eventType` and `routingKey`.
- `manage_maintenance_window`: Create, list, or end PagerDuty maintenance windows. Needs `action`.
- `create_incident`: Create a new PagerDuty incident on a specified service. Needs `title`, `serviceId` and `fromEmail`.
- `manage_service_integration`: List, get, create, or update PagerDuty service integrations. Needs `action` and `serviceId`.

### Destructive tools (2)

- `manage_service`: Create, update, or delete a PagerDuty service. Needs `action`.
- `manage_business_service`: List, get, create, update, or delete PagerDuty business services. Needs `action`.

## Triggers

PagerDuty has 2 triggers, which fire on events in PagerDuty:

- `service_events`: Triggers when PagerDuty services are created, updated, or deleted.
- `incident_events`: Triggers on PagerDuty incident lifecycle events including triggered, acknowledged, resolved, escalated, reassigned, annotated, priority changes, and responder updates.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use PagerDuty there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [PagerDuty on metorial.com](https://metorial.com/integrations/pagerduty): the integration overview