Skip to main content
Glama

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
NameRequiredDescriptionDefault
job_idYes

Implementation Reference

  • 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")
  • 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)
  • 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",

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/stickerdaniel/linkedin-mcp-server'

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