get_linkedin_profile
Extract LinkedIn profile data including headline, about section, and experience to populate CVs and resumes automatically.
Instructions
Get LinkedIn profile summary (headline, about, experience)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for the 'get_linkedin_profile' tool. It checks if LINKEDIN_PROFILE_URL environment variable is set and returns a textual summary with guidance on LinkedIn access restrictions, as direct scraping is not implemented.async def get_linkedin_profile() -> list[TextContent]: """Get LinkedIn profile (limited due to LinkedIn restrictions).""" if not LINKEDIN_PROFILE_URL: return [TextContent( type="text", text="LinkedIn profile URL not configured. Set LINKEDIN_PROFILE_URL" )] output = f"""LinkedIn Profile Summary: Profile URL: {LINKEDIN_PROFILE_URL} Note: LinkedIn restricts automated access to profiles. For best results: 1. Ensure your profile is set to public 2. Manually copy key achievements to wins.md 3. Or use LinkedIn's official API with proper authentication Alternative: Create a linkedin.md file with your profile summary, recent posts, and achievements.""" return [TextContent(type="text", text=output)]
- src/cv_resume_builder_mcp/server.py:252-259 (registration)Tool registration in the list_tools() handler, defining the name, description, and empty input schema (no parameters required).Tool( name="get_linkedin_profile", description="Get LinkedIn profile summary (headline, about, experience)", inputSchema={ "type": "object", "properties": {} } ),
- Input schema for the tool, defining an empty object (no input parameters needed).inputSchema={ "type": "object", "properties": {} }
- Dispatch logic in the call_tool() function that routes calls to the get_linkedin_profile handler.elif name == "get_linkedin_profile": return await get_linkedin_profile()