Skip to main content
Glama

Reach MCP — LinkedIn for AI agents

like_comment

Idempotent

Like a comment or a reply on a LinkedIn post, as the connected account or, with page_id, as a company page it administers. Use to acknowledge a comment without answering it, e.g. on the account's own posts (comment_urn from scrape_my_posts) or a page's (list_page_activity, same page_id); to answer in words use reply_comment. Idempotent on LinkedIn's side. Counts against the daily reactions quota.

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>",
      "comment": "<comment>"
    },
    "name": "like_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentYesThe comment: urn:li:comment:(…) (comment_id from scrape_post, comment_urn from scrape_my_posts, list_page_activity or list_notifications), urn:li:fsd_comment:(…), or the comment's link (with commentUrn= or replyUrn=).
page_idNoAct as this company page instead of the member: page_id (or vanity name) from list_managed_pages. The account must be an admin of the page with a role that allows the action. Omit to act as the member.
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.

Output Schema

NameRequiredDescriptionDefault
likedNo
comment_urnNoThe comment as urn:li:comment:(…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the baseline is covered; the description still adds real context beyond them, notably that calls draw down the daily reactions quota and that page actions require an admin role sufficient for the action. It does not cover what a failure looks like when the quota is exhausted, which keeps it off a 5.

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 sentences, all front-loaded: action, when-to-use with exclusions, then behavioral caveats (idempotency, quota). No filler or redundant restatement of the title.

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?

An output schema is present, annotations cover the safety profile, and all four parameters are fully described, so the description's job is essentially routing and caveats — both of which it delivers. Nothing an agent needs to invoke this correctly 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 description coverage is 100% and the schema already documents accepted comment URN forms, page_id sourcing, and idempotency_key expiry. The description reinforces the acting-as-page semantics of page_id but adds no new syntax or format detail beyond the schema, so the baseline of 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?

The description gives a specific verb and resource ("Like a comment or a reply on a LinkedIn post") plus the two acting scopes (member vs. company page via page_id). It is distinguishable from like_post and reply_comment at a glance 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?

It states the intent ("acknowledge a comment without answering it"), names the sibling that does the other thing ("to answer in words use reply_comment"), and points to the concrete sources for the comment identifier paired with the right tool (scrape_my_posts for own posts, list_page_activity with the same page_id for pages).

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