Skip to content

Handling of LLM queries with AND/OR operators #803

@TKBurner

Description

@TKBurner

Environment

Current Sentry MCP, Claude Code

Steps to Reproduce

  1. Ask for recent production issues.
  2. Claude decides natural lanaguage query - in this case "unresolved access
    denied or forbidden errors from last 30 days"
  3. MCP rejects because it thinks I'm trying to use logical operators and chain requests.

`

● plugin:sentry:sentry - search_issues (MCP)(organizationSlug: "labs", naturalLanguageQuery: "unresolved access
                                            denied or forbidden errors from last 30 days", regionUrl:
                                            "https://us.sentry.io", limit: 20)

⎿  Error: Input Error

 There was an HTTP 400 error with your request to the Sentry API.

 API error (400): Error parsing search query: Boolean statements containing "OR" or "AND" are not supported in this
 search

 You may be able to resolve the issue by addressing the concern and trying again.

`

Expected Result

LLM should flatten the request based on what you could actually accept to one request and supply a soft warning (or better mcp should know it needs to make multiple queries)

Actual Result

See above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions