Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

engage_with_comment

Apex only. Act on a comment: reply to it or like it — as yourself or, with organization_id, in a Company Page’s voice (you must administer the page). action="reply" needs post_id, comment_id and text; as yourself it counts against your daily reply budget (shared with automations). action="like" needs only comment_id and is unlimited. Provide author_provider_id when you have it so the do-not-engage (archived) list is honored. Get organization_id from list_companies.

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": {
      "action": "<action>",
      "comment_id": "<comment_id>"
    },
    "name": "engage_with_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoReply text (required for action="reply").
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.
actionYesWhat to do with the comment.
post_idNoThe post the comment is on (required for action="reply").
comment_idYesThe provider comment id to act on.
reply_typeNoWhich reply budget bucket this counts against. Default first_degree. (Ignored for Company-Page replies.)
reaction_typeNoReaction for action="like" (default "like").
organization_idNoOptional numeric Company Page id (from list_companies). When set, the reply/like is posted in that page’s voice instead of as yourself (Pro+).
author_provider_idNoThe comment author’s provider id, used to honor your do-not-engage list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations: replies as yourself consume a daily reply budget shared with automations, likes are unlimited, Company Page posting requires page admin rights, and passing author_provider_id honors the do-not-engage archived list. These are concrete operational constraints an agent could not infer from readOnlyHint/idempotentHint alone.

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 scope, then action-specific requirements, then the sourcing hint for organization_id. Dense but every clause carries information; the compound parenthetical about Company Page voice is the only mildly tangled part.

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?

For a 9-parameter mutation tool with no output schema, it covers permissions, budgets, required params per action, and the do-not-engage safeguard. It stops short of describing error/failure behavior beyond the schema's act_as notes, but nothing essential for correct invocation is missing.

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?

Schema coverage is already 100%, so the baseline is 3; the description still adds value by stating which parameters each action requires and by explaining why author_provider_id matters (do-not-engage list) and where organization_id comes from.

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?

States a specific verb and resource ('Act on a comment: reply to it or like it') and names the two modes (self vs. Company Page voice). It does not distinguish itself from the sibling comment_as_company, which appears to overlap with the organization_id path, so an agent cannot fully separate the two from this text alone.

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?

Gives per-action requirements (reply needs post_id, comment_id, text; like needs only comment_id) and points to list_companies for organization_id. It lacks an explicit statement of when to prefer this tool over comment_as_company or comment_on_post, so alternatives are left implicit.

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