Skip to content

search_docs fails with 400 when guide parameter is omitted #788

Closed

Description

@jds2501-cs

Title: search_docs backend API requires guide parameter despite schema marking it optional

Labels: bug, api

Description:

Problem

The search_docs tool schema marks guide as optional:

guide: ParamSentryGuide.nullable().default(null),

However, calling the tool without the guide parameter results in HTTP 400 from the backend API:

HTTP 400 error with your request to the Sentry API.
Invalid request

Steps to Reproduce

  1. Call search_docs without the guide parameter:
search_docs(query='JavaScript error monitoring setup', maxResults=3)
  1. Observe 400 error

  2. Call with guide parameter:

search_docs(query='JavaScript error monitoring setup', guide='javascript', maxResults=3)
  1. Observe success

Expected Behavior

Either:

  1. The backend API should accept guide: null and search across all documentation, OR
  2. The schema should mark guide as required to match the API requirement

Activity

  1. vertti commented on Mar 17, 2026

    @vertti

    This defaults to Claude just non-stop failing to use docs:

    ⏺ sentry - search_docs (MCP)(query: "DSN best practices separate projects per environment vs single project with
                                environments", maxResults: 5)
      ⎿  Error: **Error**
    
         There was an HTTP 400 error with your request to the Sentry API.
    
         Invalid request
    
         You may be able to resolve the issue by addressing the concern and trying again.
      ⎿  Async hook PermissionRequest completed
    
    ⏺ sentry - search_docs (MCP)(query: "DSN per environment or per project recommendation", maxResults: 5)
      ⎿  Error: **Error**
    
         There was an HTTP 400 error with your request to the Sentry API.
    
         Invalid request
    
         You may be able to resolve the issue by addressing the concern and trying again.
      ⎿  Async hook PermissionRequest completed
    
    ⏺ sentry - search_docs (MCP)(query: "environments best practices configuration", maxResults: 5)
      ⎿  Error: **Error**
    
         There was an HTTP 400 error with your request to the Sentry API.
    
         Invalid request
    
         You may be able to resolve the issue by addressing the concern and trying again.
    
  2. added a commit that references this issue on Jul 15, 2026
    3956553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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