Skip to main content
Glama
LinkedIn MCP Server

LinkedIn MCP Server

by Breakreach

LinkedIn post metrics

get_linkedin_post_metrics
Read-only

Retrieve views, likes, comments, and shares for a single LinkedIn post, with an optional refresh to fetch current metrics instead of stored values.

Instructions

Views, likes, comments and shares for one post, read from LinkedIn. Pass refresh to fetch them again rather than use the stored ones.

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": {
      "postId": "<postId>"
    },
    "name": "get_linkedin_post_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesBreakreach post id, from list_linkedin_posts
refreshNo
workspaceNoWorkspace slug, when the Breakreach account has several

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the description's added value is the stored-versus-fresh data model: metrics are read from LinkedIn and cached, and 'refresh' re-fetches rather than returning stored values. That staleness/caching behavior is genuinely beyond the annotations. It doesn't cover failure modes or rate limits, keeping it below 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?

Two short sentences, zero filler: the returned fields and scope come first, the refresh behavior second. Nothing could be removed without losing information.

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 usefully enumerates the returned metrics (views, likes, comments, shares), and it explains the caching/refresh model. For a three-parameter read tool this is close to complete; only edge behavior (empty metrics, missing post, rate limits) is absent.

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 67%; postId and workspace are already documented in the schema, and the description supplies the missing meaning for the one undocumented parameter by explaining that 'refresh' re-fetches instead of using stored values. This compensates for the coverage gap rather than merely repeating the schema.

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+resource combination (views, likes, comments, shares) and narrows the scope with 'for one post', which implicitly separates it from the account-level sibling get_linkedin_account_stats. It stops short of naming an alternative, but the resource and scope are unambiguous.

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?

Usage is implied by the 'for one post' scoping and by the fact that postId comes from list_linkedin_posts, so an agent can infer when this applies. There is no explicit when-not-to-use or routing statement against the account-level or listing siblings.

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