Skip to main content
Glama
nieperdragon

MCP Login Server

by nieperdragon

navigate_to_pim

Access the Personal Information Management page directly from the left-hand navigation menu after logging in.

Instructions

Navigates to the PIM (Personal Information Management) page using the left-hand navigation menu. Assumes user is already logged in.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'navigate_to_pim' tool. It generates and returns a detailed text response with navigation steps to the PIM page, assuming the user is logged in. Includes error handling.
    async () => { try { const navigationSteps = [ "Locate the left-hand navigation menu", "Find the 'PIM' menu item in the navigation list", "Click on the 'PIM' link to navigate to the PIM module", "Wait for the PIM page to load" ]; const response = { success: true, message: "PIM navigation tool executed successfully", steps: navigationSteps, target_module: "PIM", expected_url: "/web/index.php/pim/viewPimModule", note: "This tool provides navigation instructions for the PIM module. Requires user to be logged in first." }; return { content: [ { type: "text", text: `PIM Navigation Tool Response: āœ… Tool: navigate_to_pim šŸŽÆ Target Module: PIM (Personal Information Management) šŸ”— Expected URL: ${LOGIN_CREDENTIALS.targetUrl}/web/index.php/pim/viewPimModule šŸ“‹ Navigation Steps: ${navigationSteps.map((step, index) => `${index + 1}. ${step}`).join('\n')} šŸ’” Note: This tool assumes the user is already logged in and has access to the navigation menu. The PIM module provides functionality for managing employee personal information, employment details, and related HR data. šŸ”§ For browser automation integration, this tool can be extended to: - Verify user is logged in before navigation - Click the PIM menu item using Playwright - Wait for page load confirmation - Handle navigation errors or timeouts - Provide feedback on successful navigation` } ] }; } catch (error) { throw new McpError( ErrorCode.InternalError, `PIM navigation tool failed: ${error instanceof Error ? error.message : String(error)}` ); } }
  • src/tools.ts:179-236 (registration)
    The registration function for the 'navigate_to_pim' tool, called with the MCP server instance. Defines the tool name, description, input schema (empty), and inline handler.
    export function registerNavigateToPimTool(server: McpServer): void { server.tool( "navigate_to_pim", "Navigates to the PIM (Personal Information Management) page using the left-hand navigation menu. Assumes user is already logged in.", {}, async () => { try { const navigationSteps = [ "Locate the left-hand navigation menu", "Find the 'PIM' menu item in the navigation list", "Click on the 'PIM' link to navigate to the PIM module", "Wait for the PIM page to load" ]; const response = { success: true, message: "PIM navigation tool executed successfully", steps: navigationSteps, target_module: "PIM", expected_url: "/web/index.php/pim/viewPimModule", note: "This tool provides navigation instructions for the PIM module. Requires user to be logged in first." }; return { content: [ { type: "text", text: `PIM Navigation Tool Response: āœ… Tool: navigate_to_pim šŸŽÆ Target Module: PIM (Personal Information Management) šŸ”— Expected URL: ${LOGIN_CREDENTIALS.targetUrl}/web/index.php/pim/viewPimModule šŸ“‹ Navigation Steps: ${navigationSteps.map((step, index) => `${index + 1}. ${step}`).join('\n')} šŸ’” Note: This tool assumes the user is already logged in and has access to the navigation menu. The PIM module provides functionality for managing employee personal information, employment details, and related HR data. šŸ”§ For browser automation integration, this tool can be extended to: - Verify user is logged in before navigation - Click the PIM menu item using Playwright - Wait for page load confirmation - Handle navigation errors or timeouts - Provide feedback on successful navigation` } ] }; } catch (error) { throw new McpError( ErrorCode.InternalError, `PIM navigation tool failed: ${error instanceof Error ? error.message : String(error)}` ); } } ); }
  • src/tools.ts:241-246 (registration)
    Helper function that registers all tools, including navigate_to_pim, on the MCP server.
    export function registerAllTools(server: McpServer): void { registerPerformLoginTool(server); registerGetLoginCredentialsTool(server); registerTestConnectionTool(server); registerNavigateToPimTool(server); }
  • src/index.ts:28-28 (registration)
    Top-level call to register all tools (including navigate_to_pim) on the MCP server instance during server initialization.
    registerAllTools(server);
  • The navigate_to_pim tool is listed in the getAvailableTools() array for listing available tools.
    "navigate_to_pim"

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/nieperdragon/custom_mcp'

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