retrieve_pending_requests
Retrieve pending LinkedIn connection requests sent from your account to manage outreach and follow up on networking opportunities.
Instructions
Allows you to retrieve pending connection requests sent from your account. (st.retrievePendingRequests action).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Defines the RetrievePendingRequestsTool class, which implements the tool handler by extending OperationTool, setting the name 'retrieve_pending_requests', mapping to the specific LinkedAPI operation, defining empty input schema, and providing the MCP tool definition.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/linked-api-tools.ts:43-43 (registration)Registers the RetrievePendingRequestsTool instance in the LinkedApiTools constructor's tools array.new RetrievePendingRequestsTool(progressCallback),
- src/utils/linked-api-tool.ts:39-57 (handler)The core execute method in OperationTool that handles the tool execution by locating the matching LinkedAPI operation based on operationName and invoking 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, }); }
- Defines the input schema as an empty object using Zod, indicating no parameters are required.protected override readonly schema = z.object({});
- src/linked-api-tools.ts:20-20 (registration)Imports the RetrievePendingRequestsTool class for use in registration.import { RetrievePendingRequestsTool } from './tools/retrieve-pending-requests.js';