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
| Name | Required | Description | Default |
|---|---|---|---|
| linkedin_url | Yes | The LinkedIn profile URL to look up. |
Implementation Reference
- src/tools/enrich-linkedin.ts:16-39 (handler)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)}` } ] }; }; - src/tools/enrich-linkedin.ts:8-10 (schema)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 ); - src/server_setup.ts:18-22 (registration)Registration of the `enrich_linkedin` tool on the MCP server in the server setup utility.
enrichLinkedinName, enrichLinkedinDescription, enrichLinkedinSchema, enrichLinkedinTool ); - src/tools/enrich-linkedin.ts:4-4 (registration)Tool name constant used for registration.
export const enrichLinkedinName = "enrich_linkedin";