Skip to content

Tools function definitions: responseJsonSchema returned instead of response when using mcpToTool breaking my client #823

@gsans

Description

@gsans

Environment details

  • Programming language: TypeScript
  • Package version: 1.9.0

Steps to reproduce

This error happens when trying to migrate a client from an older version to a newer one. This is related to MCP configuration changes between versions.

  1. Upgrade genai client from 1.8.0 to 1.9.0 or 1.10.0. No other changes.
  2. Try MCP tools defined. Query: What’s the temperature in London?
  3. The main difference I’ve seen is the configuration request which has changed from using response to responseJsonSchema.
  4. There may be other issues but the function definition and the client stopping to respond to tool usage is enough.

Reproducible environment

Repo: https://github.com/gsans/gemini-2-live-angular

Exact line:
https://github.com/gsans/gemini-2-live-angular/blob/bfde02f15a5df8c73446ac63e488f55584fc0739/src/gemini/gemini-mcp.service.ts#L27

Developer Tools: check the WebSocket requests.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions