sentry_list_issue_events
Retrieve and analyze events for a specific Sentry issue to examine details, metadata, and identify patterns in application errors.
Instructions
List events for a specific Sentry issue. Analyze event details, metadata and patterns.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueId | Yes | Issue ID | |
| limit | No | Number of events to return |
Implementation Reference
- src/index.ts:1231-1250 (handler)MCP tool handler that extracts parameters, calls apiClient.listIssueEvents(issueId), slices to limit, and formats a text response listing the events.case "sentry_list_issue_events": { if (!apiClient) { throw new Error("Sentry API client not initialized. Provide auth token."); } const { issueId, limit = 50 } = args as any; const events = await apiClient.listIssueEvents(issueId); return { content: [ { type: "text", text: `Found ${events.length} events for issue ${issueId}:\n` + events.slice(0, limit).map((e: any) => `- ${e.eventID} - ${e.dateCreated} - ${e.message || e.title}` ).join('\n'), }, ], }; }
- src/index.ts:596-613 (schema)Input schema definition for the tool, specifying issueId as required string and optional limit number.{ name: "sentry_list_issue_events", description: "List events for a specific Sentry issue. Analyze event details, metadata and patterns.", inputSchema: { type: "object", properties: { issueId: { type: "string", description: "Issue ID", }, limit: { type: "number", description: "Number of events to return", default: 50, }, }, required: ["issueId"], },
- src/index.ts:596-613 (registration)Tool registration in the ListToolsRequestSchema handler's tools array.{ name: "sentry_list_issue_events", description: "List events for a specific Sentry issue. Analyze event details, metadata and patterns.", inputSchema: { type: "object", properties: { issueId: { type: "string", description: "Issue ID", }, limit: { type: "number", description: "Number of events to return", default: 50, }, }, required: ["issueId"], },
- src/sentry-api-client.ts:172-174 (helper)Core API client method that performs the HTTP request to Sentry API endpoint /issues/{issueId}/events/ to fetch the list of events.async listIssueEvents(issueId: string) { return this.request(`/issues/${issueId}/events/`); }