Read-Only vs Write Mode
Read-Only Mode (Default)
By default, the MCP server starts in read-only mode, which only exposes tools that retrieve information from your PagerDuty account. This is the safest way to explore and interact with your PagerDuty data. Read-only operations include:- Listing incidents, services, schedules, and teams
- Getting details about specific resources
- Viewing on-call schedules and rotations
- Checking event orchestration configurations
- Reading change events and log entries
- Viewing alert grouping settings and status pages
Read-only mode is safe to use without concern. No changes can be made to your PagerDuty account.
Write Mode
Write mode enables tools that can create, update, or delete resources in your PagerDuty account. This mode must be explicitly enabled using the--enable-write-tools flag.
Write operations include:
- Creating and managing incidents
- Adding notes and responders to incidents
- Creating and updating services
- Creating schedule overrides
- Modifying event orchestration rules
- Managing team membership
- Starting incident workflows
- Creating and updating status page posts
Enabling Write Mode
To enable write operations, add the--enable-write-tools flag when starting the MCP server.
VS Code
settings.json
Cursor
settings.json
Claude Desktop
claude_desktop_config.json
Docker
Local Development
settings.json
Understanding Tool Annotations
All MCP tools are annotated with safety hints to help clients and users understand the potential impact of each operation:Read-Only Tools
Read-only tools are marked with these annotations:- readOnlyHint=True: This tool only reads data
- destructiveHint=False: This tool cannot modify or delete data
- idempotentHint=True: Calling this tool multiple times has the same effect
Write Tools
Write tools are marked with these annotations:- readOnlyHint=False: This tool can modify data
- destructiveHint=True: This tool can make changes to your PagerDuty account
- idempotentHint=False: Multiple calls may have different effects
MCP clients may use these annotations to display warnings or require additional confirmation before executing write operations.
What Operations Require Write Mode
Here’s a categorized list of operations that require write mode:Incident Operations
Incident Operations
create_incident- Create a new incidentmanage_incidents- Update incident status, urgency, or assignmentadd_note_to_incident- Add notes to an incidentadd_responders- Add responders to an incident
Service Operations
Service Operations
create_service- Create a new serviceupdate_service- Update an existing service
Schedule Operations
Schedule Operations
create_schedule- Create a new on-call scheduleupdate_schedule- Update an existing schedulecreate_schedule_override- Create a schedule override
Event Orchestration Operations
Event Orchestration Operations
update_event_orchestration_router- Update router configurationappend_event_orchestration_router_rule- Add a new routing rule
Team Operations
Team Operations
create_team- Create a new teamupdate_team- Update an existing teamdelete_team- Delete a teamadd_team_member- Add a user to a teamremove_team_member- Remove a user from a team
Incident Workflow Operations
Incident Workflow Operations
start_incident_workflow- Start a workflow for an incident
Alert Grouping Operations
Alert Grouping Operations
create_alert_grouping_setting- Create a new alert grouping settingupdate_alert_grouping_setting- Update an alert grouping settingdelete_alert_grouping_setting- Delete an alert grouping setting
Status Page Operations
Status Page Operations
create_status_page_post- Create a new status page postcreate_status_page_post_update- Add an update to a status page post
Safety Considerations
When using write mode, keep these safety considerations in mind:Confirm Before Executing
Always review the AI assistant’s proposed actions before confirming write operations. The assistant should explain what changes will be made.
Test in Non-Production
If possible, test write operations in a non-production PagerDuty account first to understand their behavior.
Monitor Changes
Keep an eye on your PagerDuty account’s audit logs to track changes made through the MCP server.
Use Appropriate Permissions
Ensure the API token user has appropriate permissions. Don’t use admin tokens unless necessary.
Best Practices
Start with read-only mode
Begin by using the server in read-only mode to familiarize yourself with the available tools and data.
Enable write mode selectively
Only enable write mode when you need to perform modifications. Consider having separate configurations for read-only and write access.
Review AI proposals carefully
Before confirming any write operation, ensure you understand what the AI assistant is proposing to change.
MCP Server Instructions
When write tools are enabled, the MCP server provides these instructions to AI assistants:“READ operations are safe to use, but be cautious with WRITE operations as they can modify the live environment. Always confirm with the user before using any tool marked as destructive.”
Checking Current Mode
To verify which mode your MCP server is running in:- Check the tool list in your MCP client
- If you see tools like
create_incidentorupdate_service, write mode is enabled - If you only see tools like
list_incidentsorget_service, the server is in read-only mode
--enable-write-tools flag is present.
Next Steps
API Authentication
Set up your PagerDuty API token
Tools Reference
Browse all available MCP tools
Security Best Practices
Learn security recommendations
Incident Management
See write operations in action