Sentry MCP

Official

search_errors_in_file

Identify and analyze production errors in a specific file using filename or parent folder. Enables tracking error patterns, frequencies, and recent occurrences for effective debugging and issue resolution.

Instructions

Search for errors recently occurring in a specific file. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename.

Use this tool when you need to:

  • Search for production errors in a specific file
  • Analyze error patterns and frequencies
  • Find recent or frequently occurring errors.

Input Schema

NameRequiredDescriptionDefault
filenameYesThe filename to search for errors in.
organizationSlugNoThe organization's slug. This will default to the first org you have access to.
sortByNoSort the results either by the last time they occurred or the count of occurrences.last_seen

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "filename": { "description": "The filename to search for errors in.", "type": "string" }, "organizationSlug": { "description": "The organization's slug. This will default to the first org you have access to.", "type": "string" }, "sortBy": { "default": "last_seen", "description": "Sort the results either by the last time they occurred or the count of occurrences.", "enum": [ "last_seen", "count" ], "type": "string" } }, "required": [ "filename" ], "type": "object" }

You must be authenticated.

Other Tools from Sentry MCP

Related Tools

ID: dorqx191hb