Skip to content

search_logs fails with 'Missing required parameter timeZone' #1

Description

@danielperovic-pki

The search_logs and execute_query tools fail with:

Validation Error in search_logs: Invalid search parameters: Missing required parameter 'timeZone' for search API. Expected: string

Problem

The Sumo Logic Search API requires a timeZone parameter, but the MCP tool schema doesn't expose it as a parameter. There's no way to provide it when calling the tool.

Steps to reproduce

  1. Configure MCP server with valid credentials
  2. Call search_logs with query, from_time, to_time parameters
  3. Error occurs immediately

Expected behavior

Either:

  • Expose timeZone as an optional parameter with a sensible default (e.g., "UTC")
  • Or hardcode a default timezone internally before calling the API

Environment

  • sumologic-mcp-python version: 0.1.2
  • Python version: 3.12
  • OS: Linux (WSL2)

Workaround

Monitor and alert tools (list_monitors, get_active_alerts, get_monitor_status) work correctly. Only the search tools are affected.

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