get_errors_issues
Retrieve detailed errors and issues, including their impact and affected sessions, by filtering with date ranges, error types, occurrences, and grouping options.
Instructions
Get errors and issues with their impact and affected sessions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | End date in ISO format | |
| errorTypes | No | Filter by error types (js_exception, missing_resource, etc.) | |
| groupBy | No | How to group errors | |
| minOccurrences | No | Minimum number of occurrences | |
| startDate | No | Start date in ISO format |
Implementation Reference
- src/index.ts:439-449 (handler)The main handler function that executes the logic for the 'get_errors_issues' tool. Currently, it returns a standardized response indicating that full error analysis requires JWT authentication, as it's not supported via API key authentication.private async getErrorsIssues(args: any) { // Error analysis requires JWT authentication return { content: [ { type: "text", text: "Error analysis is not available via API key authentication. JWT authentication is required for this feature.", }, ], }; }
- src/index.ts:185-198 (schema)The Zod/input schema defining the expected input parameters for the 'get_errors_issues' tool, including optional filters for date range, error types, occurrence threshold, and grouping.inputSchema: { type: "object", properties: { startDate: { type: "string", description: "Start date in ISO format" }, endDate: { type: "string", description: "End date in ISO format" }, errorTypes: { type: "array", items: { type: "string" }, description: "Filter by error types (js_exception, missing_resource, etc.)" }, minOccurrences: { type: "number", description: "Minimum number of occurrences" }, groupBy: { type: "string", enum: ["message", "stack", "url"], description: "How to group errors" } } }
- src/index.ts:182-199 (registration)The tool registration object returned in the listTools handler, declaring the 'get_errors_issues' tool's name, description, and input schema to MCP clients.{ name: "get_errors_issues", description: "Get errors and issues with their impact and affected sessions", inputSchema: { type: "object", properties: { startDate: { type: "string", description: "Start date in ISO format" }, endDate: { type: "string", description: "End date in ISO format" }, errorTypes: { type: "array", items: { type: "string" }, description: "Filter by error types (js_exception, missing_resource, etc.)" }, minOccurrences: { type: "number", description: "Minimum number of occurrences" }, groupBy: { type: "string", enum: ["message", "stack", "url"], description: "How to group errors" } } } },
- src/index.ts:288-289 (helper)The switch case dispatcher in the central CallToolRequestSchema handler that routes 'get_errors_issues' calls to the specific getErrorsIssues method.case "get_errors_issues": return await this.getErrorsIssues(args);