sentry_search_issues
Search grouped Sentry issues using query syntax. Filter by project, environment, or time window to find unresolved errors, exceptions, or crashes, and optionally get event counts and trends.
Instructions
🔍 THE PRIMARY SENTRY SEARCH TOOL - Use this when the user asks to: 'check sentry', 'look at errors', 'search sentry', 'what's breaking', 'show me errors', 'find this exception', 'any new crashes', 'unresolved issues', 'top errors', 'how many errors', 'error rate', or 'error trend'. Searches grouped issues across the whole org automatically (no project needed) or filtered by a specific project. Uses Sentry search syntax in query (e.g. 'is:unresolved level:error', 'is:unresolved release:latest', free text like a message or exception type). Set count=true to get error event COUNTS and a TREND chart over time instead of the issue list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order: 'date' (last seen), 'freq' (most frequent), 'new' (first seen), 'user' (most users affected). Default: 'date'. | |
| count | No | When true, returns the COUNT and TREND of matching error events over time (total, peak, ASCII chart) instead of an issue list. Perfect for 'how many errors?' / 'is it getting worse?'. | |
| limit | No | Max number of issues to return. Default: 25 (max 100). | |
| query | No | Sentry search query. Default: 'is:unresolved'. Examples: 'is:unresolved level:error', 'is:unresolved is:for_review', 'release:latest', 'environment:production', or free text like 'TypeError' or 'connection timeout'. In count=true mode this is an EVENT filter (is:* tokens are ignored), e.g. 'level:error'. | |
| project | No | Optional project slug to filter to a single project (e.g. 'python-fastapi'). Omit to search ALL projects in the org. Read sentry://projects to list them. | |
| interval | No | Bucket size for count mode. Examples: '5m', '1h', '1d'. Default: '1h'. | |
| reasoning | Yes | Explanation of why you are using this tool and what you hope to find. | |
| environment | No | Optional environment filter (e.g. 'production', 'staging'). | |
| time_window | No | How far back to search FROM NOW (Sentry statsPeriod). Examples: '1h', '24h', '7d', '14d', '90d'. Default: '14d'. |