navigate_to_pim
Directs users to the Personal Information Management (PIM) page via the left-hand navigation menu on the MCP Login Server, requiring prior login for access.
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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:179-236 (registration)The registerNavigateToPimTool function exports and registers the 'navigate_to_pim' tool with the MCP server, including its description, empty input schema, 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:184-234 (handler)Inline asynchronous handler function implementing the 'navigate_to_pim' tool logic. Provides navigation steps to PIM page, success response, and formatted output text assuming prior login.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:245-245 (registration)Calls registerNavigateToPimTool as part of registering all tools with the server.registerNavigateToPimTool(server);
- src/tools.ts:183-183 (schema)Empty Zod schema object defining no input parameters for the tool.{},
- src/tools.ts:256-256 (helper)Lists 'navigate_to_pim' in the array of available tools returned by getAvailableTools."navigate_to_pim"