dsh-gemini-tool-schema
Normalizes every tool schema before it reaches the model, rewriting it into the strict OpenAPI 3.0 subset that Gemini function declarations accept — a type on every node, items on every array, no empty enum entry, $ref inlined — so a single offending MCP or built-in tool no longer fails the whole request with HTTP 400.
View project ↗Open the repository on GitHub
Overview
Normalizes every tool schema before it reaches the model, rewriting it into the strict OpenAPI 3.0 subset that Gemini function declarations accept — a type on every node, items on every array, no empty enum entry, $ref inlined — so a single offending MCP or built-in tool no longer fails the whole request with HTTP 400.
Installation
Version compatibility
Compatibility is unconfirmed. Check the project documentation for supported versions.