Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

send_message

Apex only. Send a LinkedIn message to a person as yourself. BEFORE you DM, call get_lead_activity on the recipient — the single biggest signal is whether you already have a history (they engaged your content, checked a resource you sent, you’ve DM’d/replied/connected before). Use that to open specifically, and skip anyone flagged do_not_engage. By default sends a direct message, which requires you to be connected (1st-degree). To reach someone you are NOT connected to, set as_inmail: true to send an InMail, which spends one of your LinkedIn plan’s paid InMail credits (checked first; refused if you have none). Either way it counts against your daily DM limit (the SAME budget your automations use). Archived leads are do-not-engage: the send is hard-refused at the chokepoint (same block as the in-app Drawer Agent and Loadout runs). Pass a provider id ("ACo…") or a public profile slug as the recipient. Returns the channel used and your remaining DM budget. Check your InMail credit balance via manage_activity_limits (action:"get" → channels.inmail).

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": {
      "recipient": "<recipient>",
      "text": "<text>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe message body to send.
act_asNoAPEX+ or admin act_as (optional): operate this tool AS one of your managed profiles — pass that profile's LeadShark account email (see list_profiles). Requires an active delegation from the profile owner plus an APEX+ plan or admin act_as enabled by LeadShark (which runs on the profile's own plan); anything else is refused with a reason, never silently redirected. The action runs under the managed profile's own budgets, approval queue, and action log. With a Team key, act_as is required on every call and must be one of the key's accounts (list_profiles); the call must also be within the permission groups the key has on that account, or it's refused with permission_missing. Hourly/daily limits are that profile's own.
subjectNoOptional subject line, used only for InMail (as_inmail: true).
as_inmailNoSend as an InMail (reaches a non-connection; spends one paid InMail credit). Default false (a regular DM to a 1st-degree connection).
recipientYesWho to message: a provider id ("ACo…") or a LinkedIn public profile slug.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, but the description adds substantive runtime behavior: InMail credits are checked and the send is refused when none remain, the send consumes the same daily DM budget as automations, archived leads are blocked at a shared chokepoint, and the response includes channel and remaining budget. It does not cover failure modes like non-connection DM attempts or rate-limit timing, which keeps it below 5.

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?

Front-loaded with the plan gate and the pre-call prerequisite, then branches cleanly into default vs InMail vs limit. Dense but nearly every sentence carries operational content; the manage_activity_limits cross-reference and repeated budget phrasing add some bulk.

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?

For a mutation tool with no output schema, it covers gating, prerequisites, cost, shared quota, refusal conditions, and what the response contains. Nothing material an agent needs before invoking is missing.

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 already explains as_inmail, subject, recipient formats, and act_as delegation in detail, so the description's parallel statements are largely duplicative. It does add the credit-spend consequence and recipient id format, but not enough to exceed the baseline for fully documented schemas.

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?

Opens with a specific verb and resource — "Send a LinkedIn message to a person as yourself" — plus a plan gate ("Apex only"). That wording alone separates it from siblings like send_email and send_connection_request 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 an explicit prerequisite (call get_lead_activity first, with the reason: engagement history), an explicit exclusion (skip anyone flagged do_not_engage, archived leads are hard-refused), and an explicit branch rule for the alternative path (default DM requires 1st-degree; use as_inmail for non-connections). No inference required.

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