Skip to main content
Tool Name: create_incidentCategory: IncidentsMode: Write (requires --enable-write-tools flag)

Overview

The create_incident tool allows you to manually create a new incident in PagerDuty. This is useful when you need to report an issue that wasn’t automatically detected by monitoring systems.
This tool requires write mode to be enabled. See Write Mode Configuration for details.

Parameters

incident
IncidentCreate
required
The incident creation request object.
title
string
required
The title of the incident. Should be a succinct description of the issue.Example: "Database connection timeout on production"
service
ServiceReference
required
The service associated with the incident.
id
string
required
The ID of the service.Example: "PXXXXXX"
type
string
default:"service_reference"
Always “service_reference”
urgency
string
default:"high"
The urgency level of the incident.Allowed values:
  • high - High urgency (default)
  • low - Low urgency
body
IncidentBody
Additional details about the incident.
details
string
required
Free-form text providing more context about the incident.Example: "Users are experiencing 504 Gateway Timeout errors when accessing the dashboard. Database connection pool appears to be exhausted."
type
string
default:"incident_body"
Always “incident_body”
type
string
default:"incident"
Always “incident” (automatically set)

Usage Examples

Create a high urgency incident

{
  "incident": {
    "title": "Production API returning 500 errors",
    "service": {
      "id": "PXXXXXX",
      "type": "service_reference"
    },
    "urgency": "high",
    "body": {
      "details": "Multiple customers reporting 500 errors on /api/users endpoint. Started approximately 10 minutes ago.",
      "type": "incident_body"
    }
  }
}

Create a low urgency incident

{
  "incident": {
    "title": "Slow query performance on analytics database",
    "service": {
      "id": "PYYYYYY",
      "type": "service_reference"
    },
    "urgency": "low",
    "body": {
      "details": "Analytics dashboard queries are taking 5-10 seconds. Not customer-facing but should be investigated.",
      "type": "incident_body"
    }
  }
}

Create a minimal incident

{
  "incident": {
    "title": "SSL certificate expiring in 7 days",
    "service": {
      "id": "PZZZZZZ",
      "type": "service_reference"
    }
  }
}

Response Format

Returns the created Incident object.
id
string
The unique ID of the newly created incident.
incident_number
integer
The incident number (unique across your account).
status
string
Will be triggered for newly created incidents.
title
string
The title of the incident.
created_at
datetime
When the incident was created.
updated_at
datetime
When the incident was last updated.
service
ServiceReference
The service the incident is associated with.
assignments
list[Assignment]
Initial assignments based on the service’s escalation policy.

Common Errors

Write mode not enabledIf write tools are not enabled:
Write operations are disabled. Enable with --enable-write-tools flag.
Solution: Restart the MCP server with the --enable-write-tools flag.
Invalid service IDIf the service doesn’t exist:
404 Not Found: Service not found
Solution: Verify the service ID using the list_services or get_service tool.
Missing required fieldsIf required fields are missing:
Validation Error: title is required
Solution: Ensure all required fields (title, service) are provided.

Best Practices

  • Use descriptive, actionable titles that clearly indicate the problem
  • Include detailed context in the body to help responders triage quickly
  • Set appropriate urgency based on business impact
  • Verify the service ID before creating the incident
  • Consider using automatic incident creation through monitoring integrations for routine issues

manage_incidents

Update incident status or assignment

add_note_to_incident

Add notes to track investigation

add_responders

Request additional responders

list_services

Find the correct service ID

Source Reference

Function: create_incident in pagerduty_mcp/tools/incidents.py:72 Models: IncidentCreateRequest, IncidentCreate, Incident in pagerduty_mcp/models/incidents.py

Build docs developers (and LLMs) love