Skip to main content
Glama
freesolo-co

Clado MCP Server

by freesolo-co

enrich_linkedin

Retrieve detailed LinkedIn profile information from a URL to enrich contact data and support research activities.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linkedin_urlYesThe LinkedIn profile URL to look up.

Implementation Reference

  • The main handler function `enrichLinkedinTool` that executes the tool logic: constructs API URL, calls `makeCladoRequest` to enrich the LinkedIn profile, handles errors, and returns formatted response.
    export const enrichLinkedinTool = async ({
      linkedin_url,
    }: EnrichLinkedinParams) => {
      const apiUrl = new URL("https://search.clado.ai/api/enrich/linkedin");
      apiUrl.searchParams.append("linkedin_url", linkedin_url);
    
      const response = await makeCladoRequest(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 schema defining the input parameter `linkedin_url` for the tool.
    export const enrichLinkedinSchema = {
      linkedin_url: z.string().describe("The LinkedIn profile URL to look up."),
    };
  • src/index.ts:32-36 (registration)
    Registration of the `enrich_linkedin` tool on the MCP server in the main index file.
      enrichLinkedinName,
      enrichLinkedinDescription,
      enrichLinkedinSchema,
      enrichLinkedinTool
    );
  • Registration of the `enrich_linkedin` tool on the MCP server in the server setup utility.
      enrichLinkedinName,
      enrichLinkedinDescription,
      enrichLinkedinSchema,
      enrichLinkedinTool
    );
  • Tool name constant used for registration.
    export const enrichLinkedinName = "enrich_linkedin";

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/freesolo-co/mcp'

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