Skip to content

OpenAI with LiteLLM tool usage throws error that doesnt appear when using Gemini or Claude #1389

@kanlanc

Description

@kanlanc

I have an MCP toolset that I am using which doesnt throw any errors when using Gemini or Claude but when using Openai it gives me this error

 litellm.BadRequestError: OpenAIException - Invalid schema for function 'scrape_webpage': 'BOOLEAN' is not valid under any of the given schemas.

Some other times its 'STRING' as well

Any one else facing this same issue

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK botmcp[Component] Issues about MCP supportmodels[Component] Issues related to model supportrequest clarification[Status] The maintainer need clarification or more information from the author

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions