Get in touch with us Now

You're just one step away from your Dream University!

Avail Free GMAT Test

Avail Free SAT Test

- End) */ (function () { function initWebMCP() { // Check if the browser or agent supports the modelContext API if (!('modelContext' in navigator)) { console.log('ℹ️ WebMCP API not found in this environment'); return; }const leadTool = { name: "capture_lead", description: "Submit student inquiry details for Study Abroad counseling, GRE/GMAT prep, or German language courses at IMFS.", inputSchema: { type: "object", properties: { studentfirstname: { type: "string", description: "First name of the student" }, studentlastname: { type: "string", description: "Last name of the student" }, email: { type: "string", format: "email", description: "Contact email" }, mobile: { type: "string", description: "Phone number with country code" }, interest: { type: "string", description: "Course or country of interest (e.g. Germany, USA, GRE)" } }, required: ["studentfirstname", "email", "mobile"] }, execute: async (args) => { try { const response = await fetch('https://www.imfs.co.in/api/agent-gateway.php', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-API-KEY': 'IMFS-CLAUDE-PUBLIC' }, body: JSON.stringify({ studentfirstname: args.studentfirstname, studentlastname: args.studentlastname || 'Inquiry', email: args.email, mobile: args.mobile, source_agent: 'WebMCP_Native_v1.2', interest: args.interest || 'General Study Abroad' }) }); const result = await response.text(); return { status: "SUCCESS", message: "Lead synced to IMFS CRM", details: result }; } catch (error) { console.error("Agent CRM Sync Error:", error); return { status: "ERROR", message: error.message }; } } };try { // 1. PRIMARY FIX: Direct provideContext for Cloudflare Scanner (Level 3 Status) if (typeof navigator.modelContext.provideContext === "function") { navigator.modelContext.provideContext({ tools: [leadTool] }); console.log("✅ WebMCP provideContext: Active"); }// 2. COMPATIBILITY: Register tool for current browser AI sidebars if (typeof navigator.modelContext.registerTool === "function") { navigator.modelContext.registerTool(leadTool); console.log("✅ WebMCP registerTool: Active"); } console.log("🚀 IMFS Agent Readiness: 100%"); } catch (e) { console.error("WebMCP Registration Failed:", e); } }// Use DOMContentLoaded to register skills before the scanner times out if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', initWebMCP); } else { initWebMCP(); } })();