Command
Development
Command
/alert
```bash
Install
> /plugin marketplace add getsentry/toolkit > /plugin install sentry-mcp@sentry-mcp
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/alert
Context preview
What this command does when you run it.
```bash
Command definition
alert.mdExamples
Create an issue alert rule
# Create an issue alert rule with inline JSON condition/action
sentry alert issues create my-org/my-project \
--name "Error Spike" \
--condition '{"type":"first_seen_event","comparison":true,"conditionResult":true}' \
--action '{"type":"email","data":{},"config":{"targetType":"team","targetIdentifier":"1"}}'List issue alert rules
# List issue alert rules for a project
sentry alert issues list my-org/my-project
# Filter rules by name
sentry alert issues list my-org/my-project --query "spike"
View an issue alert rule
# View by ID
sentry alert issues view my-org/my-project/12345
# View by name
sentry alert issues view my-org/my-project/"Error Spike"
Edit an issue alert rule
# Edit issue alert name/status
sentry alert issues edit my-org/my-project/12345 --name "Prod Error Spike" --status disabled
Delete an issue alert rule
# Delete with preview
sentry alert issues delete my-org/my-project/12345 --dry-run
Create a metric alert rule
# Create an organization metric alert rule
sentry alert metrics create my-org \
--name "P95 Latency" \
--query "environment:prod" \
--aggregate "p95(span.duration)" \
--dataset spans \
--time-window 5 \
--trigger '{"alertThreshold":500,"actions":[{"id":"sentry.mail.actions.NotifyEmailAction","targetType":"Team","targetIdentifier":1}]}'List metric alert rules
# List metric alert rules for an organization
sentry alert metrics list my-org/
View a metric alert rule
# View by ID
sentry alert metrics view my-org/67890
# View by name
sentry alert metrics view my-org/"P95 latency alert"
Edit a metric alert rule
# Edit metric alert query/window
sentry alert metrics edit my-org/67890 --query "environment:prod event.type:error" --time-window 15
Delete a metric alert rule
# Delete without prompt
sentry alert metrics delete my-org/67890 --yes
Read more
Examples
Create an issue alert rule
# Create an issue alert rule with inline JSON condition/action
sentry alert issues create my-org/my-project \
--name "Error Spike" \
--condition '{"type":"first_seen_event","comparison":true,"conditionResult":true}' \
--action '{"type":"email","data":{},"config":{"targetType":"team","targetIdentifier":"1"}}'List issue alert rules
# List issue alert rules for a project sentry alert issues list my-org/my-project # Filter rules by name sentry alert issues list my-org/my-project --query "spike"
View an issue alert rule
# View by ID sentry alert issues view my-org/my-project/12345 # View by name sentry alert issues view my-org/my-project/"Error Spike"
Edit an issue alert rule
# Edit issue alert name/status sentry alert issues edit my-org/my-project/12345 --name "Prod Error Spike" --status disabled
Delete an issue alert rule
# Delete with preview sentry alert issues delete my-org/my-project/12345 --dry-run
Create a metric alert rule
# Create an organization metric alert rule
sentry alert metrics create my-org \
--name "P95 Latency" \
--query "environment:prod" \
--aggregate "p95(span.duration)" \
--dataset spans \
--time-window 5 \
--trigger '{"alertThreshold":500,"actions":[{"id":"sentry.mail.actions.NotifyEmailAction","targetType":"Team","targetIdentifier":1}]}'List metric alert rules
# List metric alert rules for an organization sentry alert metrics list my-org/
View a metric alert rule
# View by ID sentry alert metrics view my-org/67890 # View by name sentry alert metrics view my-org/"P95 latency alert"
Edit a metric alert rule
# Edit metric alert query/window sentry alert metrics edit my-org/67890 --query "environment:prod event.type:error" --time-window 15
Delete a metric alert rule
# Delete without prompt sentry alert metrics delete my-org/67890 --yes
Ships withtoolkit
Sentry's MCP service is primarily designed for human-in-the-loop coding agents. Our tool selection and priorities are focused on developer workflows and debugging use cases, rather than providing a general-purpose MCP server for all Sentry functionality.
Get the whole plugin
Stats
910
Stars
156
Forks
Active
Maintenance
TypeScript
Language
1h ago
Last commit
1y ago
Created
Repo: getsentry/sentry-mcp
Other commands on toolkit.
Command
Command
explore
Enter explore mode - think through ideas, investigate problems, clarify requirements
Command
propose
Propose a new change - create it and generate all artifacts in one step
Command
Command

