Skip to main content
Glama

search_for_users

Find LinkedIn users by applying filters such as search query, school, and match threshold using the Linkd MCP Server's structured search tool.

Instructions

Search for users on Linkd using filters like query, school, and match threshold.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
acceptance_thresholdNoMatch score threshold between 0 and 100
limitNoMaximum number of results to return (1–30)
queryYesThe search query, e.g., 'People working on AI at FAANG'
schoolNoFilter by school name(s), e.g., ['Stanford', 'MIT']

Implementation Reference

  • The main handler function that executes the search_for_users tool logic by constructing an API request to search.linkd.inc and returning the results.
    export const searchForUsersTool = async ({ query, limit = 10, school, acceptance_threshold = 60, }: SearchForUsersParams) => { const url = new URL("https://search.linkd.inc/api/search/users"); url.searchParams.append("query", query); url.searchParams.append("limit", String(Math.min(limit, 30))); url.searchParams.append("acceptance_threshold", String(Math.max(0, Math.min(100, acceptance_threshold)))); if (school && school.length > 0) { school.forEach((s: string) => url.searchParams.append("school", s)); } const response = await makeLinkdRequest(url.toString(), {}); const responseData = await response.json(); if (responseData.error) { throw new Error( `Failed to search for users: ${JSON.stringify(responseData.error)}` ); } return { content: [ { type: "text" as const, text: `search completed succesfully: ${JSON.stringify(responseData, null, 2)}` } ] }; };
  • Input schema definition using Zod for validating parameters like query, limit, school, and acceptance_threshold.
    export const searchForUsersSchema = { query: z.string().describe("The search query, e.g., 'People working on AI at FAANG'"), limit: z.number().min(1).max(30).default(10).describe("Maximum number of results to return (1–30)"), school: z.array(z.string()).optional().describe("Filter by school name(s), e.g., ['Stanford', 'MIT']"), acceptance_threshold: z .number() .min(0) .max(100) .default(60) .describe("Match score threshold between 0 and 100"), };
  • Registers the search_for_users tool on the MCP server using the name, description, schema, and handler.
    server.tool( searchForUsersName, searchForUsersDescription, searchForUsersSchema, searchForUsersTool );

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