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.

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

Install from npm

dsh plugin --profile web add dsh-gemini-tool-schema

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:ChenXu233/dsh-gemini-tool-schema

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.