Logo SVG copied to clipboard
Early Access Build agents that never fail Learn more

Gemini 400 — Function call missing a thought_signature

42teams hit this · 30d
168occurrences · 30d
66%auto-recovered by Manifest
Occurrences across all Manifest teams, last 14 days

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.

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

Join the waitlist to get early access with a free month.