get_job_details
Retrieve structured job posting details from LinkedIn including title, company, location, posting date, and description using a job ID.
Instructions
Get job details for a specific job posting on LinkedIn
Args: job_id (str): LinkedIn job ID (e.g., "4252026496", "3856789012")
Returns: Dict[str, Any]: Structured job data including title, company, location, posting date, application count, and job description (may be empty if content is protected)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |
Implementation Reference
- linkedin_mcp_server/tools/job.py:32-57 (handler)The core handler implementation for the 'get_job_details' tool. It takes a job_id, constructs the LinkedIn job URL, scrapes the job using linkedin_scraper.Job, and returns the job details as a dictionary. Includes error handling via handle_tool_error.@mcp.tool() async def get_job_details(job_id: str) -> Dict[str, Any]: """ Get job details for a specific job posting on LinkedIn Args: job_id (str): LinkedIn job ID (e.g., "4252026496", "3856789012") Returns: Dict[str, Any]: Structured job data including title, company, location, posting date, application count, and job description (may be empty if content is protected) """ try: # Construct clean LinkedIn URL from job ID job_url = f"https://www.linkedin.com/jobs/view/{job_id}/" driver = safe_get_driver() logger.info(f"Scraping job: {job_url}") job = Job(job_url, driver=driver, close_on_complete=False) # Convert job object to a dictionary return job.to_dict() except Exception as e: return handle_tool_error(e, "get_job_details")
- linkedin_mcp_server/server.py:27-29 (registration)Registration of tool groups in create_mcp_server(), including the call to register_job_tools(mcp) which registers the 'get_job_details' tool.register_person_tools(mcp) register_company_tools(mcp) register_job_tools(mcp)
- linkedin_mcp_server/cli.py:70-72 (registration)The 'get_job_details' tool is listed as a required tool in the generated Claude Desktop MCP server configuration."get_person_profile", "get_company_profile", "get_job_details",