Skip to main content
Glama

accept_invitation

Accepts LinkedIn connection, company-follow, and newsletter-subscription invitations by specifying the invitation type and the matching profile, company, or newsletter URL.

Instructions

Accepts an incoming connection, company-follow, or newsletter-subscription invitation (st.acceptInvitation action). Set invitationType and provide only its matching URL. If this workflow is still running, do not retry this tool; retrying can queue duplicate accept attempts.

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
personUrlNoRequired only for invitationType 'connect'. Public or hashed LinkedIn URL of the person.
companyUrlNoRequired only for invitationType 'companyFollow'. LinkedIn company page URL.
newsletterUrlNoRequired only for invitationType 'newsletterSubscribe'. LinkedIn newsletter URL.
invitationTypeYesInvitation type to accept.
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 handles it excellently. It discloses the queued cloud-browser workflow, immediate return shape with status/pendingReason/workflowId, the need to call get_workflow_result, and explains pendingReason variants including outsideWorkingHours. It also warns about duplicate queued work from retries.

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?

Despite being longer than average, each paragraph earns its place: purpose and retry warning, async workflow and result retrieval, and pendingReason semantics. The structure is logical, front-loaded, and free of filler, making it efficient for agent consumption.

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?

The tool has moderate complexity with three conditional parameter shapes, no output schema, and background workflows. The description fully covers the return format, follow-up retrieval via get_workflow_result, retry dangers, and the outsideWorkingHours edge case. Nothing essential is missing for correct invocation and follow-up.

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 schema already provides 100% parameter descriptions with conditional requirements per invitationType. The description adds a helpful reinforcement by saying 'Set invitationType and provide only its matching URL,' clarifying mutual exclusivity. This goes slightly beyond the schema's oneOf structure without needing to duplicate details.

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 opens with 'Accepts an incoming connection, company-follow, or newsletter-subscription invitation,' using a specific verb and naming the resource. It also enumerates the three invitation types, clearly distinguishing it from siblings like ignore_invitation and send_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 Guidelines4/5

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

It gives clear context that this is for accepting incoming invitations and instructs to set invitationType and provide only the matching URL. It also provides critical usage warnings about not retrying while a workflow is running and redirecting to get_workflow_result. However, it does not explicitly state when not to use the tool or compare it to alternatives like retrieve_invitations.

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