mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
71b3caa663
When an MCP tool has no parameters, tool_call.arguments is None, which
serialized to JSON null. The Anthropic API rejects null for the input
field, requiring an empty object {} instead.
This is the same fix applied to Bedrock in #8121 but was missing from
the Anthropic provider.
Fixes #9287
Signed-off-by: Douwe Osinga <douwe@squareup.com>