Skip to main content
Glama

retrieve_contacts

Retrieve email addresses and phone numbers from a LinkedIn profile URL using the Linkd MCP Server. Input the profile URL to access contact details, consuming 1 credit per lookup.

Instructions

Retrieves email addresses and phone numbers for a LinkedIn profile. Each lookup costs 1 credit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linkedin_urlYesThe LinkedIn profile URL to look up.

Implementation Reference

  • The main handler function `retrieveContactsTool` that makes an API request to retrieve contact information (emails and phones) for a given LinkedIn profile URL.
    export const retrieveContactsTool = async ({ linkedin_url, }: RetrieveContactsParams) => { const apiUrl = new URL("https://search.linkd.inc/api/enrich/contacts"); apiUrl.searchParams.append("linkedin_url", linkedin_url); const response = await makeLinkdRequest(apiUrl.toString(), {}); const responseData = await response.json(); if (responseData.error) { throw new Error( `Failed to retrieve contact information: ${JSON.stringify(responseData.error)}` ); } return { content: [ { type: "text" as const, text: `contact information retrieved successfully: ${JSON.stringify(responseData, null, 2)}` } ] }; };
  • Input schema definition for the `retrieve_contacts` tool parameters using Zod.
    export const retrieveContactsSchema = { linkedin_url: z.string().describe("The LinkedIn profile URL to look up."), };
  • Registration of the `retrieve_contacts` tool on the MCP server using the name, description, schema, and handler function.
    server.tool( retrieveContactsName, retrieveContactsDescription, retrieveContactsSchema, retrieveContactsTool );

Other Tools

Related Tools

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/automcp-app/linkd-mcp'

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