When using the Search Agent, the agent consistently tries to call COMPOSIO_CREATE_PLAN, but this tool is not included in request.tools → causing a tool call validation failed error.
However, when testing the same flow in Composio’s Playground, it works correctly.
this is the complete response -> {7 Items
successfull: false
error: "Search agent failed: litellm.BadRequestError: GroqException - {"error":{"message":"tool call valida..."
data: {...}
logs: [...]
version: "00000000_00"
auth_refresh_required: false
successful: false
}
error : "Search agent failed: litellm.BadRequestError: GroqException - {"error":{"message":"tool call validation failed: attempted to call tool 'COMPOSIO_CREATE_PLAN' which was not in request.tools","type":"invalid_request_error","code":"tool_use_failed","failed_generation":"Now let me create a comprehensive plan for this workflow:\u003c|tool_calls_section_begin|\u003e\u003c|tool_call_begin|\u003efunctions.COMPOSIO_CREATE_PLAN:3\u003c|tool_call_argument_begin|\u003e{\"session_id\":\"N4Z-QKS03\",\"use_case\":\"list all notion pages and send to email\",\"toolkits_needed\":[\"NOTION\",\"GMAIL\"],\"tools_to_be_used\":[\"NOTION_SEARCH_NOTION_PAGE\",\"GMAIL_SEND_EMAIL\",\"GMAIL_GET_PROFILE\"]}\u003c|tool_call_end|\u003e\u003c|tool_calls_section_end|\u003e"}}
"
Log_id = log_Ljwpuae12PBY