Skip to main content
Glama

verify_authentication

Confirm authentication status and synchronize cookies across all clients to ensure secure access to N Lobby school portal data.

Instructions

Verify authentication status and cookie synchronization across all clients

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the verify_authentication tool. Retrieves current cookie status from the API and appends authentication recommendations before returning the verification report.
    case "verify_authentication": { const authStatus = this.api.getCookieStatus(); return { content: [ { type: "text", text: `[INFO] Authentication Verification Report\n\n${authStatus}\n\n[LOG] Recommendations:\n${this.getAuthenticationRecommendations()}`, }, ], }; }
  • src/server.ts:399-407 (registration)
    Registration of the verify_authentication tool in the listTools response, including name, description, and empty input schema.
    { name: "verify_authentication", description: "Verify authentication status and cookie synchronization across all clients", inputSchema: { type: "object", properties: {}, }, },
  • Helper method called by the verify_authentication handler to generate context-specific authentication recommendations based on the current cookie status.
    private getAuthenticationRecommendations(): string { const authStatus = this.api.getCookieStatus(); const recommendations = []; // Check if no authentication is present if ( authStatus.includes("[ERROR] no cookies") && authStatus.includes("[ERROR] not authenticated") ) { recommendations.push( "1. Run interactive_login to authenticate with N Lobby", ); recommendations.push( "2. Make sure to complete the login process in the browser window", ); recommendations.push( '3. Wait for the "Login successful" message before proceeding', ); } // Check if authentication is partial else if (authStatus.includes("[ERROR] not synchronized")) { recommendations.push("1. Cookie synchronization issue detected"); recommendations.push( "2. Try running interactive_login again to refresh all cookies", ); recommendations.push( "3. Check if any network issues are preventing proper cookie setting", ); } // Check if authentication is complete but endpoints are failing else if ( authStatus.includes("[SUCCESS] authenticated") && authStatus.includes("[SUCCESS] synchronized") ) { recommendations.push("1. Authentication appears to be working correctly"); recommendations.push( "2. If endpoints are still failing, the issue may be server-side", ); recommendations.push( "3. Try running health_check to verify connectivity", ); recommendations.push("4. Check if N Lobby server is experiencing issues"); } // Default recommendations else { recommendations.push( "1. Check the authentication status above for specific issues", ); recommendations.push( "2. Run health_check to verify overall system health", ); recommendations.push("3. Try get_news to test data retrieval"); } return recommendations.join("\n"); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/minagishl/nlobby-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server