Skip to main content
Glama

retrieve_pending_requests

Retrieve pending LinkedIn connection requests sent from your account using the Linked API MCP server, enabling efficient management of your professional network.

Instructions

Allows you to retrieve pending connection requests sent from your account. (st.retrievePendingRequests action).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation: Defines the RetrievePendingRequestsTool class which extends OperationTool. Sets the tool name, operation name, empty input schema using Zod, and provides tool metadata via getTool() method.
    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: {}, }, }; } }
  • Registration: The RetrievePendingRequestsTool is instantiated and added to the tools array in the LinkedApiTools constructor.
    this.tools = [ // Standard tools new SendMessageTool(progressCallback), new GetConversationTool(progressCallback), new CheckConnectionStatusTool(progressCallback), new RetrieveConnectionsTool(progressCallback), new SendConnectionRequestTool(progressCallback), new WithdrawConnectionRequestTool(progressCallback), 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 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), ];
  • Core handler logic: The execute method in OperationTool (base class for RetrievePendingRequestsTool) that locates the specific operation by operationName ('retrievePendingRequests') and invokes 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, }); } }
  • Schema definition: Empty Zod schema for input validation, indicating no parameters required.
    protected override readonly schema = z.object({});

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