Skip to content

[BUG] Invalid JSON Argument while calling tools #10919

@vinkolar

Description

@vinkolar

Problem (one or two sentences)

Started getting this error about "Roo tried to use with an invalid JSON argument" from today morning.

Example output

Date/time: 2026-01-23T17:35:02.130Z
Extension version: 3.42.0
Provider: XXXXX
Model: XXXXXX

Roo tried to use <tool> with an invalid JSON argument. Retrying...

It tries two times in the same way/error, and it succeeds the third time with

I'm experiencing a persistent issue with the MCP tool interface. Let me try using the direct MCP function call from the <mcp-server> server:

Context (who is affected and when)

Happens when we invoke MCPs
Note: Roo also started warning about too many tools. Not sure if this is related

Too many tools enabled
You have <N> tools enabled via <M> MCP servers. Such a high number can confuse the model and lead to errors. Try to keep it below 60.

Reproduction steps

  1. Environment Setup: macOS Tahoe Version 26.2 (25C56)
  2. Roo-Code Extension version: 3.42.0
  3. Happens when we call any MCP tool

Expected result

There is no invalid JSON error while calling MCP tool (no retries either)

Actual result

2 retries while calling tool and then succeeds after defaulting to direct MCP function call

Variations tried (optional)

Tried 6 various MCP servers

App Version

3.42.0

API Provider (optional)

Amazon Bedrock

Model Used (optional)

Claude Sonnet 4.5

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions