Skip to main content
Glama

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
NameRequiredDescriptionDefault
issueIdYesIssue ID
limitNoNumber of events to return

Implementation Reference

  • 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'), }, ], }; }
  • 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"], },
  • 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/`); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/diegofornalha/sentry-mcp-cursor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server