retrieve_pending_requests
Retrieve pending LinkedIn connection requests you have sent to track which invitations are still awaiting acceptance.
Instructions
Allows you to retrieve pending connection requests sent from your account. (st.retrievePendingRequests action).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The RetrievePendingRequestsTool class. It extends OperationTool and defines the tool name 'retrieve_pending_requests', the operation name from the LinkedAPI library, an empty schema (no params), and the getTool() method returning the MCP Tool descriptor.
export class RetrievePendingRequestsTool extends OperationTool<unknown, unknown> { public override readonly name = 'retrieve_pending_requests'; public override readonly operationName = OPERATION_NAME.retrievePendingRequests; protected override readonly schema = z.object({}); public override getTool(): Tool { return { name: this.name, description: 'Allows you to retrieve pending connection requests sent from your account. (st.retrievePendingRequests action).', inputSchema: { type: 'object', properties: {}, }, }; } } - src/utils/linked-api-tool.ts:36-58 (helper)The OperationTool base class that provides the execute() implementation. It finds the matching operation by operationName from the LinkedApi instance, then delegates to executeWithProgress to run the operation with 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, }); } } - src/linked-api-tools.ts:55-78 (registration)Registration of RetrievePendingRequestsTool in the tools array inside the LinkedApiTools constructor.
new RetrievePendingRequestsTool(progressCallback), new RemoveConnectionTool(progressCallback), new SearchCompaniesTool(progressCallback), new SearchPeopleTool(progressCallback), new FetchCompanyTool(progressCallback), new FetchPersonTool(progressCallback), new FetchPostTool(progressCallback), new ReactToPostTool(progressCallback), new CommentOnPostTool(progressCallback), new CreatePostTool(progressCallback), new RetrieveSSITool(progressCallback), new RetrievePerformanceTool(progressCallback), // Sales Navigator tools new NvSendMessageTool(progressCallback), new NvGetConversationTool(progressCallback), new NvSearchCompaniesTool(progressCallback), new NvSearchPeopleTool(progressCallback), new NvFetchCompanyTool(progressCallback), new NvFetchPersonTool(progressCallback), // Other tools new ExecuteCustomWorkflowTool(progressCallback), new GetWorkflowResultTool(progressCallback), new GetApiUsageTool(progressCallback), ]; - src/linked-api-tools.ts:30-30 (registration)Import statement for RetrievePendingRequestsTool in the main LinkedApiTools registration file.
import { RetrievePendingRequestsTool } from './tools/retrieve-pending-requests.js'; - Schema definition for retrieve_pending_requests - empty object schema (no input parameters required).
protected override readonly schema = z.object({});