Bug Report
Environment:
- Model:
us.anthropic.claude-opus-4-6-v1 via Bedrock (litellm)
- OS: macOS
- OpenCode version: latest
Error
litellm.UnsupportedParamsError: Bedrock doesn't support tool calling without `tools=` param specified. Pass `tools=` param OR set `litellm.modify_params = True` // `litellm_settings::modify_params: True` to add dummy tool to the request.. Received Model Group=us.anthropic.claude-opus-4-6-v1
Available Model Group Fallbacks=None
Context
This error occurs when a Task subagent is spawned to perform work that involves MCP tool calls (e.g. Atlassian Confluence, Jira, Miro, Todoist). The subagent session appears to not pass the tools= parameter to the Bedrock API, which is required by litellm when using Bedrock as the provider.
Reproduction Steps
- Configure OpenCode with a Bedrock-hosted model via litellm (e.g.
us.anthropic.claude-opus-4-6-v1)
- Have MCP servers configured (e.g. Atlassian, Todoist)
- Trigger a task that causes the primary agent to spawn a Task subagent
- The subagent attempts to use MCP tools → error fires
Expected Behaviour
Task subagents should correctly pass the tools= parameter to the model provider when MCP tools are available, or litellm's modify_params should be set to handle this case gracefully.
Workaround
Added AGENTS.md rules to prevent the primary agent from delegating MCP/external service calls to Task subagents. This avoids the error but limits parallelism.
Suggestion
Either:
- Ensure the
tools= param is forwarded to subagent sessions when using Bedrock via litellm
- Set
litellm.modify_params = True / litellm_settings::modify_params: True as a default when Bedrock is the provider
- Document the limitation clearly for Bedrock users
Bug Report
Environment:
us.anthropic.claude-opus-4-6-v1via Bedrock (litellm)Error
Context
This error occurs when a Task subagent is spawned to perform work that involves MCP tool calls (e.g. Atlassian Confluence, Jira, Miro, Todoist). The subagent session appears to not pass the
tools=parameter to the Bedrock API, which is required by litellm when using Bedrock as the provider.Reproduction Steps
us.anthropic.claude-opus-4-6-v1)Expected Behaviour
Task subagents should correctly pass the
tools=parameter to the model provider when MCP tools are available, or litellm'smodify_paramsshould be set to handle this case gracefully.Workaround
Added AGENTS.md rules to prevent the primary agent from delegating MCP/external service calls to Task subagents. This avoids the error but limits parallelism.
Suggestion
Either:
tools=param is forwarded to subagent sessions when using Bedrock via litellmlitellm.modify_params = True/litellm_settings::modify_params: Trueas a default when Bedrock is the provider