Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

comment_on_post

Destructive

Apex only. Post a comment on a LinkedIn post as yourself (your personal profile). This is the core "Act" primitive — use it to reply to a discovered lead-magnet post or a hot signal. To comment as a Company Page instead, use comment_as_company (Apex).

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": {
      "post_id": "<post_id>",
      "text": "<text>"
    },
    "name": "comment_on_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe comment text to post.
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.
post_idYesThe LinkedIn post to comment on. Accepts a post URN (urn:li:activity:…), a bare numeric post id, or a LinkedIn post URL. Use post_id from list_recent_posts or post_urn / post_url from discover_lead_magnets.

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 destructiveHint=true, openWorldHint=true, idempotentHint=false and readOnlyHint=false, so the destructive/public/irreversible profile is partially covered. The description adds real value beyond that by disclosing the Apex-only plan requirement and the personal-profile execution identity. It stops short of saying the comment is immediately published, publicly visible, and has no undo path, which is the main remaining behavioral question for a destructive write.

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?

Three short sentences, each doing distinct work: gate, core action, alternative. The 'Apex only' constraint is front-loaded ahead of everything else, which is the right priority order for an agent scanning definitions.

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 three-parameter destructive write with no output schema, the important pieces are present: plan gating, identity scope, sibling routing, and a fully described schema covering post_id formats and act_as requirements. Slightly incomplete in that it never says the comment publishes immediately with no edit/delete path, which matters given destructiveHint=true and idempotentHint=false.

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 description coverage is 100%, so post_id formats (URN, bare numeric id, URL) and the act_as delegation/budget/approval-queue semantics are already fully documented in the schema. The description adds nothing about parameters beyond the identity framing it already carries in its purpose statement. Baseline 3 is correct.

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?

States a specific verb and resource ('Post a comment on a LinkedIn post') and immediately scopes the identity ('as yourself / your personal profile'), which is exactly the axis that separates it from comment_as_company. An agent can classify the tool without opening the 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 both a what and a when: 'core Act primitive — use it to reply to a discovered lead-magnet post or a hot signal', plus an explicit alternative with its own routing condition ('To comment as a Company Page instead, use comment_as_company'). The 'Apex only' gate is front-loaded, so plan-level exclusions are known before calling.

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