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
| Name | Required | Description | Default |
|---|---|---|---|
| personUrl | Yes | 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') |
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'], }, }; } }
- src/utils/linked-api-tool.ts:39-57 (handler)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, }); }
- src/linked-api-tools.ts:38-38 (registration)Registers the CheckConnectionStatusTool instance in the array of tools provided by LinkedApiTools class.new CheckConnectionStatusTool(progressCallback),
- src/linked-api-server.ts:19-19 (registration)Instantiates LinkedApiTools (which includes check_connection_status tool) in the MCP server constructor.this.tools = new LinkedApiTools(progressCallback);
- src/linked-api-server.ts:22-23 (helper)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());