Logo SVG copied to clipboard
New Introducing paid plans for Manifest Cloud Learn more

Gemini 400 — Function call missing a thought_signature

What this error means

Gemini 2.5 returns 400 INVALID_ARGUMENT when a functionCall part is replayed without the thought_signature it originally issued.

How to fix it

  • Preserve thought_signature on every functionCall part you send back
  • Keep function turns immediately after the matching user or tool turn
  • Do not hand-edit or truncate prior tool messages
Example error message
{
  "error": {
    "code": 400,
    "message": "Function call is missing a thought_signature in functionCall parts.",
    "status": "INVALID_ARGUMENT"
  }
}

Frequently asked

Why did this start after upgrading to Gemini 2.5?

Thought signatures are new to 2.5 thinking models; older clients that strip unknown fields drop them and trigger the 400.

More Google Gemini errors

CodeErrorAffected teams / 30 days
429 Gemini 429 — You exceeded your current quota 120 View
503 Gemini 503 — The model is currently overloaded 40 View
View all Google Gemini errors
Route Google Gemini through Manifest Live token usage, every model, and automatic fallback when Google Gemini rate-limits or fails.

Don't let your requests fail again and again

Manifest fixes your bad LLM requests on the fly so they return successful responses before it reaches your agent. No downtime.

  • Deprecated / Not-found models
  • Wrong parameters
  • Malformed requests
  • Exceeded context windows