tool_input_validationTier 1 · 70% confidence

ai-agents-tool-input-validatio-sporadic-400-error-from-bedrock-tools-3-custom-inp-74ed72a1

agent: ai_agents

When does this happen?

IF Sporadic 400 error from Bedrock: 'tools.3.custom.input_examples: Extra inputs are not permitted' when using Claude Code with LiteLLM.

How others solved it

THEN Ensure tool definitions do not include the 'input_examples' field. Either downgrade Claude Code to v2.0.36 (which does not send this field) or implement a custom LiteLLM middleware to strip unsupported nested fields from tool definitions before sending to Bedrock. The 'drop_params: true' setting only handles top-level parameters, not nested tool properties.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics