Skip to main content
Glama

retrieve_connections

Retrieve LinkedIn connections with optional filters for schools, industries, companies, locations, and more. Start a workflow and poll for the final result.

Instructions

allows you to retrieve your connections and perform additional person-related actions if needed (st.retrieveConnections action).

Linked API actions are queued into a cloud-browser workflow and may take several minutes. The server returns immediately after starting the workflow with {status: 'pending'|'running', pendingReason, workflowId, operationName, message}. To retrieve the final result, call get_workflow_result with the returned workflowId and operationName — it will long-poll until completion or the request budget elapses, then return either the final result or another in-progress snapshot. Do not retry the original tool while a workflow is still running; that creates duplicate queued work.

A pending workflow carries pendingReason: 'queued' means it is waiting its turn behind other work on the same account and will start within minutes. 'outsideWorkingHours' means the account has configured working hours and the workflow is parked until they reopen — possibly the next working day. In that case get_workflow_result returns immediately instead of polling, message states when the window opens, and you should report that to the user rather than looping.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional. Number of connections to return. Defaults to 10, with a maximum value of 1000.
sinceNoOptional. ISO date string that filters connections to only include those made on or after the specified date. Only works when filter is not provided.
filterNoOptional. Object that specifies filtering criteria for people. When multiple filter fields are specified, they are combined using AND logic.
Behavior5/5

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

With no annotations provided, the description carries the full burden and it excels: it explains the queued cloud-browser workflow, immediate pending response with status fields, long-poll mechanism, and distinct pending reasons like 'outsideWorkingHours'. It also warns against retrying to avoid duplicate queued work, which is valuable behavioral disclosure.

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

Conciseness4/5

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

The description is longer than typical but every sentence contributes necessary information about the async workflow and special cases. It is front-loaded with the core purpose, then explains the process in a structured, readable way. Slight redundancy (e.g., mentioning the operationName twice) keeps it from a 5.

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

Completeness5/5

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

This is a complex asynchronous tool with no output schema, and the description covers all necessary context: immediate return shape, how to retrieve the final result via get_workflow_result, behavior for queued vs outsideWorkingHours, and instructions not to retry. It is complete enough for an agent to correctly invoke and follow up.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal parameter-specific detail beyond what the schema provides (e.g., mentioning 'when filter is not provided' for the since parameter), which is already in the schema. Thus the baseline of 3 is appropriate.

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

Purpose4/5

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

The description clearly states the tool retrieves connections and names the underlying action (st.retrieveConnections). It is specific about the resource (connections) but does not explicitly contrast itself with sibling tools like retrieve_pending_requests or search_people, so it misses the differentiation that would merit a 5.

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

Usage Guidelines3/5

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

The description gives clear context on how to handle the asynchronous workflow (use get_workflow_result, don't retry while running), but it does not say when to choose this tool over alternatives like search_people for broader people search. The when-to-use is implied by the name and description, not explicitly stated.

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/zecloud/remote-mcp-linkedin'

If you have feedback or need assistance with the MCP directory API, please join our Discord server