Skip to main content
Glama

Reach MCP — LinkedIn for AI agents

send_message

Send a LinkedIn DM via Voyager createMessage: use conversation_linkedin_id for an existing thread or recipient_linkedin_id for a new DM. Use for the classic inbox: conversation_linkedin_id to reply in a thread, recipient_linkedin_id for a new one (1st-degree connections, or with in_mail_premium an Open Profile member). Counts against the daily messages quota; a Sales Navigator InMail with a subject is salesnav_send_inmail, a Sales Navigator thread salesnav_send_message; for more than ten messages use create_job. On a refusal, error carries LinkedIn's reason.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account_id": "<account_id>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoPlain text to send or post.
page_idNoReply as this company page (page_id from list_managed_pages; needs send_messages). A page can only answer: conversation_linkedin_id from list_conversations with the same page_id is required.
account_idYesReach id of the LinkedIn account to act on, from list_accounts.
idempotency_keyNoOptional. A key you choose (a UUID is fine) that names this exact call. If you retry with the same key and the same arguments, the first call's result is returned and nothing is done twice on LinkedIn. Reusing a key with different arguments is refused. Keys expire after 24 hours.
in_mail_premiumNoSend from the classic inbox to someone outside the network, without a subject: works for an Open Profile member (free) and uses LinkedIn Premium credits, not Sales Navigator ones; requires recipient_linkedin_id. For a Sales Navigator InMail use salesnav_send_inmail.
recipient_linkedin_idNoRecipient profile id (fsd_profile id) to start a new conversation; from list_conversations or scrape_profile. Omit when replying in an existing conversation.
conversation_linkedin_idNoConversation (thread) id, as returned by list_conversations.

Output Schema

NameRequiredDescriptionDefault
errorNoLinkedIn's reason when it refused the message (absent on success, or when LinkedIn gave none).
successNo
status_codeNoHTTP status from LinkedIn (e.g. 201 on success).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / in_mail_premium / description
      Previous value: -"Send as InMail to someone outside the network (premium accounts); requires recipient_linkedin_id."New value: +"Send from the classic inbox to someone outside the network, without a subject: works for an Open Profile member (free) and uses LinkedIn Premium credits, not Sales Navigator ones; requires recipient_linkedin_id. For a Sales Navigator InMail use salesnav_send_inmail."
    • addedOutput schema / properties / error
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "LinkedIn's reason when it refused the message (absent on success, or when LinkedIn gave none).",
      +  "title": "Error"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / page_id
      Added value: +{
      +  "description": "Reply as this company page (page_id from list_managed_pages; needs send_messages). A page can only answer: conversation_linkedin_id from list_conversations with the same page_id is required.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (which already declare non-read-only, open-world, non-destructive), the description discloses that the call consumes the daily messages quota and that refusals surface LinkedIn's own reason in the error. It does not mention idempotency or that page-based replies are constrained, both of which live only in the schema.

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

Conciseness3/5

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

The core routing rule is front-loaded, but the first two clauses say the same thing twice ('use conversation_linkedin_id for an existing thread or recipient_linkedin_id for a new DM' then 'conversation_linkedin_id to reply in a thread, recipient_linkedin_id for a new one'), and the colon-spliced sentences are hard to parse. Roughly a third of the text is redundant restatement.

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

Completeness4/5

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

With an output schema present, return values need not be explained, and the description covers quota impact, competing Sales Navigator paths, batching via create_job, and error semantics. What remains thin is the page-reply and idempotency behavior, which the agent must discover from the schema.

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% and the schema descriptions already spell out conversation vs. recipient routing, idempotency_key behavior, and the page_id reply constraint. The description restates the routing meaning but adds no format, syntax, or constraint detail the schema lacks, so the baseline 3 applies.

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?

Names a specific verb and resource ('Send a LinkedIn DM via Voyager createMessage') and immediately scopes it to the classic inbox, distinguishing it from salesnav_send_inmail, salesnav_send_message and create_job by name. An agent can pick this tool over its siblings without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit routing rules: conversation_linkedin_id for a reply, recipient_linkedin_id for a new DM, in_mail_premium for Open Profile recipients, salesnav_send_inmail when a subject is needed, and create_job beyond ten messages. It also states the accepted network condition (1st-degree connections) that determines whether the classic path works at all.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources