Skip to main content
Glama
automcp-app

Linkd MCP Server

by automcp-app

check_deep_research_status

Monitor the progress of a LinkedIn deep research job by providing its ID to track completion status and results.

Instructions

Check the status of an ongoing deep research job.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesThe job ID to check status for

Implementation Reference

  • The main handler function that executes the tool logic: constructs a URL for the deep research status API, makes a request using makeLinkdRequest, handles errors, and returns the status as text content.
    export const checkDeepResearchStatusTool = async ({
      job_id,
    }: CheckDeepResearchStatusParams) => {
      const statusUrl = new URL(`https://search.linkd.inc/api/search/deep_research/${job_id}`);
      const response = await makeLinkdRequest(statusUrl.toString(), {});
      const responseData = await response.json();
    
      if (responseData.error) {
        throw new Error(
          `Failed to check deep research status: ${JSON.stringify(responseData.error)}`
        );
      }
    
      return {
        content: [
          {
            type: "text" as const,
            text: `deep research status: ${JSON.stringify(responseData, null, 2)}`
          }
        ]
      };
    };
  • Zod schema defining the input parameters: job_id as string with description.
    export const checkDeepResearchStatusSchema = {
      job_id: z.string().describe("The job ID to check status for"),
    };
  • Registration of the tool in the MCP server using server.tool() with name, description, schema, and handler.
    server.tool(
      checkDeepResearchStatusName,
      checkDeepResearchStatusDescription,
      checkDeepResearchStatusSchema,
      checkDeepResearchStatusTool
    );

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