Skip to content

Tools

List per-post LinkedIn metrics for an inclusive date range.

Includes posts published natively on LinkedIn as well as posts published through Kliver Analytics, provided they have been imported into Kliver Analytics. Use YYYY-MM-DD for date_from and date_to.

Results are ordered newest first and paginated. When has_more is true, call this tool again with cursor=next_cursor and the same date range. Continue until has_more is false.

linkedin_activity_id and linkedin_post_id are LinkedIn identifiers, not arguments for other tools. Metrics that were not collected are null, not 0.

Input Type Default Description
date_from string — Date From
date_to string — Date To
limit integer 50 Limit
cursor any null Cursor

Get a compact summary of the user’s LinkedIn analytics.

Returns top-line totals, follower growth for the selected period, and the top N posts by impressions. followers.gained is null when LinkedIn did not provide enough snapshots to cover the whole period. Check followers.coverage; available_range_gained is explicitly limited to the returned coverage dates. followers.daily returns compact {date, gained} points, so use one multi-day call instead of one request per day when building a roll-up. These are profile-level daily gains, not followers attributed to a specific post. Use period to scope the window. For most questions like “how did I perform recently?” use ‘30d’.

Identifiers: top_posts[].linkedin_share_urn is the LinkedIn share URN of the post. Use it to correlate entries across metrics tools (e.g. list_linkedin_post_metrics). This MCP is metrics-only — there are no post editing, scheduling, or publishing tools.

Input Type Default Description
period string '30d' Period
top_n integer 5 Top N

Check when LinkedIn post metrics were last updated.

Call this before refresh_my_posts. When should_refresh is false, reuse the stored metrics instead of starting another refresh. When no metrics timestamp exists, data_available is false and should_refresh is true.

Input Type Default Description
max_age_minutes integer 60 Max Age Minutes

Trigger a fresh pull of the user’s LinkedIn posts and wait until done.

Check get_metrics_freshness first. If should_refresh is false, do not start another refresh unless the user explicitly requires a forced refresh. It is a slow, expensive call: the backend scrapes LinkedIn synchronously and only responds once the refresh is finished, which can take up to a minute or two. Call it once and wait for the result — do NOT call it again back-to-back if it errors, as each call re-triggers the full scrape.

max_wait_seconds is only an upper bound on how long this tool waits; with the current backend the call returns as soon as the refresh is done, so the default is fine. If the result ever comes back with status ‘timeout’, the refresh is still running in the background — tell the user to check back shortly instead of calling again.

Input Type Default Description
max_wait_seconds integer 90 Max Wait Seconds

List the active members of your organisation.

Only callable by org super_admins. Returns name, email, status, whether each member is themselves an org_admin, and whether their LinkedIn account is currently connected to Kliver Analytics.

Use this first when the user asks anything team-scoped, so you know the set of valid member_user_id values to pass to the other org tools.

No inputs.


Compact analytics for the org or one specific member.

  • When member_user_id is omitted: returns one compact summary per team member (name, totals, follower growth, top posts). Use this for “how is the team doing?” questions.
  • When member_user_id is set: returns ONE detailed summary for that member, same shape as get_metrics_summary for the caller’s own account.

top_n defaults to 3 in team view (response stays token-efficient for an LLM); set higher when drilling into a single member.

summary.followers.gained is null when LinkedIn did not provide enough snapshots to cover the whole period. Check follower coverage; available_range_gained only covers the returned dates. summary.followers.daily contains profile-level daily gains.

Identifiers — IMPORTANT: top_posts[].linkedin_share_urn is the LinkedIn share URN, NOT the post UUID expected by get_org_member_post. To read a top post’s full record: call list_org_member_posts(member_user_id=..., status="published"), match the URN against the row’s linked_in_url_post field, then pass that row’s id to get_org_member_post.

Input Type Default Description
period string '30d' Period
member_user_id any null Member User Id
top_n integer 3 Top N

List posts across the org, optionally scoped to one member.

  • When member_user_id is set: only that member’s posts. Useful for “show me Alice’s drafts” or “what is Bob scheduling next?”.
  • When omitted: posts grouped by member (each with limit posts starting at offset). Use for “what’s the team posting this week?”.

status is the lifecycle filter (draft / scheduled / published), consistent across this MCP’s tools. Members and members’ posts are returned even if the LLM client doesn’t have a direct relationship with them — org-admin permission is sufficient.

Each returned post row exposes its post UUID as id. To read ONE post’s full record (full text, media, stats…), pass that id to get_org_member_post(member_user_id=..., post_id=...).

Input Type Default Description
member_user_id any null Member User Id
status string 'scheduled' Status
limit integer 20 Limit
offset integer 0 Offset

Fetch the full record of ONE post owned by a member of your org.

Use this when you already have a member’s post UUID — typically from list_org_member_posts — and need its full content/metadata (full text, schedule date, LinkedIn URL, stats, media, etc.).

Only callable by org super_admins. Both arguments are REQUIRED:

  • member_user_id: the post owner’s user id, exactly as returned by list_org_members (user_record_id) or list_org_member_posts. It must be a member of YOUR org.
  • post_id: the Kliver Analytics UUID of the post (e.g. “df1cbd56-a7c0-41f4-b929-5d242bed12eb”), as returned in the id field by list_org_member_posts. This is NOT the linkedin_share_urn from get_org_metrics_summary — passing a URN returns error_type='invalid_post_id_format' (400).

Typical chain:

  1. list_org_member_posts(member_user_id=..., status=...) → read the target row’s id.
  2. get_org_member_post(member_user_id=..., post_id=<that id>).

Error shapes:

  • error_type='org_admin_required' (403): you are not an org admin.
  • error_type='member_not_in_org' (404): member_user_id is not in your org.
  • error_type='post_not_found' (404): the post does not exist, is deleted, or does NOT belong to member_user_id (IDOR guard — you cannot read another member’s post by passing the wrong owner).
Input Type Default Description
member_user_id string — Member User Id
post_id string — Post Id