Skip to main content
Glama

Get post analytics

get_post_analytics

Returns the latest analytics snapshot for a single platform post (layer 1 of 3 — one post = one platform). Includes views, likes, comments, shares, plus platform-specific metrics like reach, saves, watch time. Instagram Reels may add platform_metrics.reels_skip_rate (percent of views that skipped in the first 3 seconds), and Instagram rows with Facebook Login may add platform_metrics.reposts, and Instagram Stories platform_metrics.link_clicks (taps on links in the Story, read while it's live). When the workspace has Facebook Login for the same account, Instagram likes, comments and views are all-surfaces totals including boosted media, and platform_metrics has total_likes, total_comments and total_views. YouTube rows may add platform_metrics.engaged_views, engaged_engagement_rate (likes + comments + shares per engaged view, percent), thumbnail_impressions, thumbnail_ctr (impressions click-through rate, percent), thumbnail_impressions_since (first day the impressions cover) and traffic_sources (views per YouTube traffic source, e.g. SHORTS, YT_SEARCH); for retention use get_youtube_retention.

The provenance field says where a row of zeros comes from:

  • sync → the analytics pipeline actually fetched from the platform. Zeros here are real.

  • seed → placeholder row written at publish time (fetched_at ≈ published_at). No fetch has run yet; every metric is a stub 0.

  • unsupported_platform → the platform has no analytics (Telegram, Discord, WordPress, WhatsApp, Ghost, Blogger, Vimeo). The seed row stays at 0 forever and does not mean the platform reported zero engagement.

A row with fetch_status unavailable means the platform will never report on this post, and fetch_error says why (personal LinkedIn/Pinterest account, X without the workspace's own API key, Google Business Profile posts); its zeros are placeholders, not measured values.

Also returns platform_supports_analytics: boolean. Numeric fields may be null when the platform doesn't expose that metric (e.g. shares on YouTube) OR when no sync has run yet. For the same video summed across platforms use get_video_analytics; for a whole folder rolled up use get_folder_analytics.

Freshness: if the workspace's analytics were last synced over an hour ago (or never), this call also starts a background sync and reports it in the response's sync field (status started or in_progress, plus last_synced_at). The numbers in that response are from the previous sync; call again in a few minutes for fresh ones. sync.status of free_plan_limit or daily_limit means no sync could run, so the numbers may not be current.

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": {
      "video_post_id": "<video_post_id>"
    },
    "name": "get_post_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_post_idYesThe video_posts.id to fetch analytics for. Only meaningful once the post is published.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With annotations present (readOnlyHint=false, openWorldHint=true), the description goes well beyond them by disclosing the side effect that explains the non-read-only hint: stale data triggers a background sync, the returned numbers are from the previous sync, and sync.status values like free_plan_limit/daily_limit mean no sync ran. It also decodes the provenance field (sync/seed/unsupported_platform), fetch_status 'unavailable', and null-vs-zero semantics — behavior an agent cannot infer from the schema.

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?

Front-loaded with the one-line purpose before the dense platform_metrics detail, and the provenance block is cleanly itemized. The long enumeration of Instagram/YouTube metric names is heavy but each entry earns its place by telling the agent what a returned key means; minor trimming of repeated 'platform_metrics.' prefixes would tighten it.

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?

No output schema exists, so the description carries the full burden of explaining return values — and it does: metric lists per platform, provenance semantics, platform_supports_analytics, null behavior, and sync status. An agent can interpret a zero-filled or null-bearing response correctly after reading this.

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?

Only one parameter and schema coverage is 100%, so the schema already documents video_post_id fully. The description adds no format, ID-source, or validity detail beyond what the schema states, so the baseline 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?

Opens with a specific verb+resource+scope: 'Returns the latest analytics snapshot for a single platform post (layer 1 of 3 — one post = one platform).' The parenthetical explicitly bounds the granularity, which is exactly what separates it from get_video_analytics and get_folder_analytics.

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 explicit routing rules with named alternatives and the condition that selects each: 'For the same video summed across platforms use get_video_analytics; for a whole folder rolled up use get_folder_analytics,' plus 'for retention use get_youtube_retention.' It also implicitly scopes use to published posts.

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.