sentry_pattern_analysis
Identifies and ranks error patterns from Sentry issues by merging near-duplicate titles and grouping by event volume, helping you quickly determine if incident events stem from one dominant problem or many.
Instructions
🧩 Use when the user asks: 'group similar errors', 'what error patterns', 'types of errors', 'categorize errors', 'what's the breakdown', 'do we have one problem or many', or during an incident. Sentry already groups events into issues; this tool ranks those issue groups by event volume and merges near-duplicate issue titles (stripping IDs/UUIDs/numbers) into higher-level patterns. ESSENTIAL for incident triage - instantly see whether you have 1 dominant problem or 50 different ones, and which patterns drive the most events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max issue groups to scan. Default: 100 (max 100). | |
| query | No | Sentry search query to scope the analysis. Default: 'is:unresolved'. | |
| project | No | Optional project slug to scope to one project. Omit for all projects. | |
| reasoning | Yes | Explanation of why you are analyzing patterns. | |
| environment | No | Optional environment filter (e.g. 'production'). | |
| time_window | No | How far back to analyze (statsPeriod). Default: '14d'. | |
| min_occurrences | No | Only show patterns whose combined event count is at least this. Default: 1. |