Skip to main content
Glama
Linked-API
by Linked-API

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

TableJSON Schema
NameRequiredDescriptionDefault

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: {},
          },
        };
      }
    }
  • 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,
        });
      }
    }
  • 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),
    ];
  • 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({});
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description does not disclose any behavioral traits beyond the basic purpose. It fails to mention that the operation is read-only or any other relevant behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single clear sentence with no wasted words, plus the action name in parentheses for further clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description is adequate for a simple retrieval tool, but it could be more complete by noting it returns a list or is read-only.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so the description does not need to add parameter info. The baseline score of 4 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'retrieve' and the resource 'pending connection requests', with scope 'sent from your account'. It distinguishes from siblings like 'retrieve_connections' and 'withdraw_connection_request'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives such as 'retrieve_connections' or 'check_connection_status'. It lacks contextual usage advice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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