                            
                                if (value !== '' || param.required) {
                                    params[param.name] = value;
                                }
                            });
                        }
                        
                        // Validate required parameters
                        const missingParams = data.parameters
                            .filter(p => p.required && (params[p.name] === undefined || params[p.name] === ''))
  