Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

[BUG] Native gemini 3-pro tool calls seem to be broken (Function call is missing a thought_signature in functionCall parts) #9499

Closed

Description

@dmarkey

Problem (one or two sentences)

While trying to use the new native gemini-3-pro tool calls with the gemini provider it seems to have problems with this error being returned:

Gemini generate context stream error: {"error":{"message":"{\n "error": {\n "code": 400,\n "message": "Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, function call default_api:ask_followup_question , position 4. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.",\n "status": "INVALID_ARGUMENT"\n }\n}\n","code":400,"status":"Bad Request"}}

I've also experienced this with the code search tool.

XML based(non native) tool calls work.

Context (who is affected and when)

Gemini 3.0-pro users that want to use native tool calls with the gemini provider.

Reproduction steps

  1. Set up gemini-3-pro with the gemini provider.
  2. Try to push the agent to do tool calls.

Expected result

Tool calls should consistently work.

Actual result

Tool calls inconsistently work.

Variations tried (optional)

No response

App Version

3.34.0

API Provider (optional)

Google Gemini

Model Used (optional)

Gemini-3-pro-preview

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Activity

  1. changed the title [-][BUG] Native gemini 3-pro calls seem to be broken (Function call is missing a thought_signature in functionCall parts)[/-] [+][BUG] Native gemini 3-pro tool calls seem to be broken (Function call is missing a thought_signature in functionCall parts)[/+] on Nov 22, 2025
  2. dmarkey commented on Nov 22, 2025

    @dmarkey
    ContributorAuthor

    You're right, it doesn't seem to happen when I've "Model Reasoning Effort" set.

  3. ghost added a commit that references this issue on Nov 22, 2025
    d941b6f
  4. steenlarsen commented on Dec 26, 2025

    @steenlarsen

    I have the same problem with gemini-3-flash-preview on OpenRouter

    Date/time: 2025-12-23T14:41:34.649Z
    Extension version: 3.37.0
    Provider: openrouter
    Model: google/gemini-3-flash-preview

    400
    OpenRouter completion error: Gemini models require OpenRouter reasoning details to be preserved in each request. Please refer to our docs: https://openrouter.ai/docs/guides/best-practices/reasoning-tokens#preserving-reasoning-blocks. Upstream error: {
    "error": {
    "code": 400,
    "message": "Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, function call default_api:ask_followup_question , position 2. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.",
    "status": "INVALID_ARGUMENT"
    }
    }

  5. removed
    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.
    on Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions