工具 API
search_ events
搜索事件并执行计数/聚合——唯一的统计和计数工具。 支持两种查询类型: 1. 聚合(计数、求和、平均值):"有多少错误"、"问题计数"、"总 token 数" 2. 带时间戳的单个事件:"显示过去一小时的错误日志" 用于所有计数/统计: - "今天有多少错误" → 返回计数 - "本周数据库故障计数" → 返回计数 - "问题总数" → 返回计数 - "平均响应时间" → 返回平均值 - "使用的总 token 数" → 返回总和 也用于单个事件: - "过去一小时的错误日志" → 返回事件列表 - "带时间戳的数据库错误" → 返回事件列表 - "慢 API 调用的追踪跨度" → 返回跨度列表 数据集选择(AI 自动选择): - errors:异常/崩溃事件 - logs:日志条目 - spans:性能数据、AI/LLM 调用、token 使用量 不要用于分组的问题列表 → 请使用 search_issues
调用信息
- 工具标识
- sentry-mcp.search_events
- 服务提供方
- Sentry
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
organizationSlug必填The organization's slug. You can find a existing list of organizations you have access to using the `find_organizations()` tool.
naturalLanguageQuery必填Natural language description of what you want to search for
projectSlugThe project's slug. You can find a list of existing projects in an organization using the `find_projects()` tool.
regionUrlThe region URL for the organization you're querying, if known. For Sentry's Cloud Service (sentry.io), this is typically the region-specific URL like 'https://us.sentry.io'. For self-hosted Sentry installations, this parameter is usually not needed and should be omitted. You can find the correct regionUrl from the organization details using the `find_organizations()` tool.
limitMaximum number of results to return
includeExplanationInclude explanation of how the query was translated