Skip to main content
Glama
automcp-app

Linkd MCP Server

by automcp-app

enrich_linkedin

Retrieve detailed profile information from LinkedIn URLs to enrich contact data and support business intelligence workflows.

Instructions

Retrieves detailed profile information for a specific LinkedIn URL. Each successful lookup costs 1 credit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe LinkedIn profile URL to look up.

Implementation Reference

  • The async handler function executing the core logic of the 'enrich_linkedin' tool: constructs API URL, calls makeLinkdRequest, processes response, and returns formatted content.
    export const enrichLinkedinTool = async ({
      url,
    }: EnrichLinkedinParams) => {
      const apiUrl = new URL("https://search.linkd.inc/api/enrich/linkedin");
      apiUrl.searchParams.append("url", url);
    
      const response = await makeLinkdRequest(apiUrl.toString(), {});
      const responseData = await response.json();
    
      if (responseData.error) {
        throw new Error(
          `Failed to enrich LinkedIn profile: ${JSON.stringify(responseData.error)}`
        );
      }
    
      return {
        content: [
          {
            type: "text" as const,
            text: `enrichment completed successfully: ${JSON.stringify(responseData, null, 2)}`
          }
        ]
      };
    };
  • Zod input schema and TypeScript type definition for the tool's parameters (LinkedIn URL). Includes name and description exports nearby.
    export const enrichLinkedinSchema = {
      url: z.string().describe("The LinkedIn profile URL to look up."),
    };
    
    type EnrichLinkedinParams = {
      url: string;
    };
  • Registration of the 'enrich_linkedin' tool on the MCP server using the imported name, description, schema, and handler.
      enrichLinkedinName,
      enrichLinkedinDescription,
      enrichLinkedinSchema,
      enrichLinkedinTool
    );
  • Tool name and description constants used for registration and documentation.
    export const enrichLinkedinName = "enrich_linkedin";
    
    export const enrichLinkedinDescription = "Retrieves detailed profile information for a specific LinkedIn URL. Each successful lookup costs 1 credit.";

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