Skip to main content
Glama

linkedin_get_post_stats

Read-only

Retrieve engagement metrics for a LinkedIn post—likes, comments, and, for company pages, impressions, clicks, shares, and engagement rate—to measure post performance.

Instructions

Get engagement for a LinkedIn post: like and comment counts, and for company page posts also impressions, clicks, shares and engagement rate (needs rw_organization_admin).

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": {
      "postUrn": "<postUrn>"
    },
    "name": "linkedin_get_post_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
postUrnYesPost URN, as returned by linkedin_create_post or linkedin_list_posts

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds the non-obvious behavior that the returned metric set varies by post type and that elevated OAuth scope is needed for page-post metrics. It stops short of covering error behavior for non-page posts or missing scopes, but the auth disclosure is real value beyond the annotations.

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?

A single tight sentence with the core capability front-loaded and the conditional/scope caveat trailing in parentheses. It is dense but has no filler; splitting into two sentences would read slightly cleaner.

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 no output schema, the description correctly carries the burden of describing return values by enumerating the metric names. Combined with the scope prerequisite, an agent has enough to call this correctly; only the failure mode for a company post without the admin scope is unstated.

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?

With one parameter and 100% schema description coverage, the schema already explains postUrn, including its URN pattern and provenance from linkedin_create_post or linkedin_list_posts. The description adds nothing further about the parameter, so the baseline of 3 applies.

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?

The description names a specific verb and resource ('Get engagement for a LinkedIn post') and enumerates what comes back: like and comment counts, plus impressions, clicks, shares and engagement rate for company page posts. It implicitly separates post-level engagement from the page-level sibling linkedin_get_page_stats, though it never names that alternative.

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

Usage Guidelines3/5

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

A useful conditional is given — company-page metrics require the rw_organization_admin scope — which tells the agent when the richer payload is available. However, there is no explicit when-to-use guidance versus linkedin_get_post or linkedin_get_page_stats, so the agent must infer that this is the metrics-only call.

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