check_connection_status
Verify LinkedIn connection status with any profile using their public URL to determine if you're connected, pending, or not connected.
Instructions
Allows you to check the connection status between your account and another person (st.checkConnectionStatus action).
Input Schema
TableJSON 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') |
Implementation Reference
- The CheckConnectionStatusTool class defines the core handler for the 'check_connection_status' tool, specifying its name, the underlying Linked API operation name, Zod schema for input validation, and the MCP-compatible tool definition including detailed input schema.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'], }, }; } }
- Zod schema used for runtime input validation of the tool parameters.protected override readonly schema = z.object({ personUrl: z.string(), });
- src/linked-api-tools.ts:1-1 (registration)Imports the CheckConnectionStatusTool for use in LinkedApiTools.import { CheckConnectionStatusTool } from './tools/check-connection-status.js';
- src/linked-api-tools.ts:39-39 (registration)Instantiates the CheckConnectionStatusTool and registers it in the tools array of the LinkedApiTools class.new CheckConnectionStatusTool(progressCallback),
- src/utils/linked-api-tool.ts:36-58 (handler)Base class for operation-based tools providing the execute method that dynamically resolves and invokes the corresponding Linked API operation based on operationName, handling progress reporting.export abstract class OperationTool<TParams, TResult> extends LinkedApiTool<TParams, TResult> { public abstract readonly operationName: TOperationName; 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, }); } }