Skip to main content
Glama

check_connection_status

Verify the connection status between your LinkedIn account and another user's profile using their public or hashed LinkedIn URL. Part of the Linked API MCP server.

Instructions

Allows you to check the connection status between your account and another person (st.checkConnectionStatus action).

Input Schema

NameRequiredDescriptionDefault
personUrlYesPublic or hashed LinkedIn URL of the person you want to check the connection status with. (e.g., 'https://www.linkedin.com/in/john-doe')

Input Schema (JSON Schema)

{ "properties": { "personUrl": { "description": "Public or hashed LinkedIn URL of the person you want to check the connection status with. (e.g., 'https://www.linkedin.com/in/john-doe')", "type": "string" } }, "required": [ "personUrl" ], "type": "object" }

Implementation Reference

  • Defines the CheckConnectionStatusTool class, setting the tool name 'check_connection_status', operationName, Zod schema for input validation, and the MCP tool definition including inputSchema and description.
    export class CheckConnectionStatusTool extends OperationTool< TCheckConnectionStatusParams, TCheckConnectionStatusResult > { public override readonly name = 'check_connection_status'; public override readonly operationName = OPERATION_NAME.checkConnectionStatus; protected override readonly schema = z.object({ personUrl: z.string(), }); public override getTool(): Tool { return { name: this.name, description: 'Allows you to check the connection status between your account and another person (st.checkConnectionStatus action).', inputSchema: { type: 'object', properties: { personUrl: { type: 'string', description: "Public or hashed LinkedIn URL of the person you want to check the connection status with. (e.g., 'https://www.linkedin.com/in/john-doe')", }, }, required: ['personUrl'], }, }; } }
  • The execute method in OperationTool (base class for CheckConnectionStatusTool) that performs the core tool logic: finds the corresponding operation in linkedapi by operationName and executes it with progress tracking.
    public override execute({ linkedapi, args, workflowTimeout, progressToken, }: { linkedapi: LinkedApi; args: TParams; workflowTimeout: number; progressToken?: string | number; }): Promise<TMappedResponse<TResult>> { const operation = linkedapi.operations.find( (operation) => operation.operationName === this.operationName, )! as Operation<TParams, TResult>; return executeWithProgress(this.progressCallback, operation, workflowTimeout, { params: args, progressToken, }); }
  • Registers the CheckConnectionStatusTool instance in the array of tools provided by LinkedApiTools class.
    new CheckConnectionStatusTool(progressCallback),
  • Instantiates LinkedApiTools (which includes check_connection_status tool) in the MCP server constructor.
    this.tools = new LinkedApiTools(progressCallback);
  • The getTools method in LinkedApiMCPServer exposes the tool definitions (including check_connection_status) to the MCP protocol.
    public getTools(): Tool[] { return this.tools.tools.map((tool) => tool.getTool());

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/Linked-API/linkedapi-mcp'

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