From f9691eab17a7e1ad5f019f6f49498dc6a07bc3e7 Mon Sep 17 00:00:00 2001 From: Adrian Lopez Date: Sun, 6 Apr 2025 17:26:15 +0200 Subject: [PATCH] Remove invalid JSON schema in query gmail emails tool Resolves this error returned by the OpenAI API: {'error': {'message': \"Invalid schema for function 'google-suite__query_gmail_emails': False is not of type 'array'.\", 'type': 'invalid_request_error', 'param': 'tools[5].function.parameters', 'code': 'invalid_function_parameters'} --- src/mcp_gsuite/tools_gmail.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mcp_gsuite/tools_gmail.py b/src/mcp_gsuite/tools_gmail.py index 181414a..2b47feb 100644 --- a/src/mcp_gsuite/tools_gmail.py +++ b/src/mcp_gsuite/tools_gmail.py @@ -42,7 +42,6 @@ def get_tool_description(self) -> Tool: - 'newer_than:2d' for emails from last 2 days - 'has:attachment' for emails with attachments If not provided, returns recent emails without filtering.""", - "required": False }, "max_results": { "type": "integer",