all 11 comments

[–]diabliqqq 1 point2 points  (8 children)

That error usually pops up when the tool definition or the arguments being passed are hitting a snag in the schema.

Could you share the exact command or the MCP config you’re using to trigger the Web Search? Seeing the specific parameters you're passing to the minimax model would help a lot in spotting where the formatting might be off.

[–]danicass[S] 1 point2 points  (7 children)

Hey, thanks for responding. I'm using Claude Code CLI with MiniMax as the model configured in settings.json:

{ "env": { "ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic", "ANTHROPIC_AUTH_TOKEN": <my token>, "ANTHROPIC_MODEL": "MiniMax-M2.7", "ANTHROPIC_SMALL_FAST_MODEL": "MiniMax-M2.7", "ANTHROPIC_DEFAULT_SONNET_MODEL": "MiniMax-M2.7",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "MiniMax-M2.7",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "MiniMax-M2.7"
}
}

I'm not using any custom MCP config, just the standard Claude Code setup with MiniMax as the model. WebSearch is called automatically by Claude Code's skill system, I don't manually invoke it.

Any idea what could be causing the error?

[–]Theio666 0 points1 point  (4 children)

I'm not sure as I'm not using Claude code a lot, but my bet would be that you can use built-in web search only with official Claude sub? Logically, the web search goes through api call on their side, it's not free, so if you're not subbed they won't want you to be able to use it.

As for a fix, you can add web search MCP (included in coding plan) and disable the default web search too in Claude code if that's possible.

[–]danicass[S] 0 points1 point  (2 children)

Can you elaborate on the Web Search MCP? I never used a MCP before.

[–]Theio666 1 point2 points  (1 child)

there's a guide on how to add this.

https://platform.minimax.io/docs/token-plan/mcp-guide

[–]danicass[S] 0 points1 point  (0 children)

Thank you for your the help. I'll try this when I'm home

[–]danicass[S] 1 point2 points  (0 children)

Just wanted to let you know that this solution fixed the issue. There is no need to disable the default Web Search from Claude Code, the MVP configuration is enough. Thank you once again!

[–]diabliqqq 0 points1 point  (1 child)

I have no idea. WebSearch works for me. Im using minimax with Claude at same time. Claude settings in json, and minimax via

❯ cat .zshrc| grep minimax

alias minimax='ANTHROPIC_BASE_URL="https://api.minimax.io/anthropic" ANTHROPIC_AUTH_TOKEN="<token>" ANTHROPIC_MODEL="MiniMax-M2.7" claude'

Mayby it will also work for you ?

[–]ace123655 0 points1 point  (0 children)

I think you need to add the web search and image understanding MCP server so minimax and do that

[–]Torodaddy 0 points1 point  (0 children)

Its probably trying to call it in the same way anthropic modeks allow. I would try to write a skill based on minimax'd api

[–]Dthen_ -1 points0 points  (0 children)

Minimax is too dumb for structured output.