mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-03 14:09:24 +00:00
Fixes #4472 — MCP tools (and any tool with args_schema) produced JSON schemas incompatible with Gemini and Bedrock/Anthropic because extract_tool_info() called generate_model_description() which applies OpenAI-specific transformations (additionalProperties: false, forcing all properties required, title fields). Added generate_tool_parameters_schema() that produces clean schemas without those provider-specific metadata fields. Updated extract_tool_info() to use it for the args_schema path. Co-Authored-By: João <joao@crewai.com>