Skip to main content
Glama

Get folder analytics

get_folder_analytics

Returns aggregated analytics for a folder across every video inside it. By default the numbers cumulate through subfolders (matching the analytics dashboard's folder view); pass include_subfolders=false to limit the rollup to uploads filed directly in this folder. Response includes per-platform breakdown, per-video breakdown (one row per upload with its own summed metrics), and folder-level totals. Use list_folders to look up a folder_id.

Numbers come from the locally-cached analytics (post_analytics), not a live platform fetch.

Dashboard parity note: same caveat as get_workspace_analytics. Instagram, Facebook, and YouTube slices sum cached per-post metrics and may under-report vs. the ShortSync dashboard, which fetches account-level insights live for those three platforms. TikTok match the dashboard exactly. That's why folder totals can differ from the dashboard's own folder view for Instagram, Facebook, and YouTube.

by_platform only contains platforms the analytics pipeline actually fetches; other platforms have no metrics, not zero engagement.

hidden_platforms_no_analytics lists the unsupported platforms that do have posts in the folder (Telegram, Discord, WordPress, WhatsApp, Ghost, Blogger, Vimeo) with the post count, which are excluded from the breakdown. X and Google Business Profile rows show 0 when X has no API key added or for Google Business posts (Google has no per-post stats).

Analytics coverage: per-post analytics exist for YouTube, TikTok, Instagram, Facebook, LinkedIn (Company Pages), Threads, Bluesky, Pinterest (business accounts), Snapchat, Mastodon, Pixelfed, Reddit, Tumblr and Dailymotion (views, likes and saves; Pixelfed, Reddit, Tumblr, Bluesky and Mastodon report no view counts). X has analytics only when the workspace has added its own X API key in Settings > Integrations (X bills each post read to the user's X developer account); without one, X posts come back unavailable with that reason. Google Business Profile has profile-level stats only (no per-post numbers). Telegram and Discord have no analytics at all.

by_video still includes every published post regardless of platform. Low numbers on a fetched platform can come from a connection that needs reconnecting; list_platform_connections shows that state.

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": {
      "folder_id": "<folder_id>"
    },
    "name": "get_folder_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoOptional lookback window in days, counting from now. Omit for lifetime. Max 365. The window is based on the post's published_at.
folder_idYesThe folders.id to summarize. Get it from list_folders. The user must be a member of the folder's workspace.
include_subfoldersNoWhen true (default), sum metrics through every descendant folder. When false, only include uploads filed directly in this folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Extremely rich beyond the annotations: discloses that numbers come from cached post_analytics rather than a live fetch, that a background sync may be triggered with the response reflecting the previous sync, and what sync statuses like free_plan_limit mean. It also documents coverage gaps, platforms excluded from by_platform, and why totals diverge from the dashboard — all behavior an agent could not infer from readOnlyHint=false/openWorldHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core behavior well, but the body is long and partly redundant — the extended analytics-coverage roster and the hidden_platforms list repeat each other (Telegram/Discord appear in both), and much of the platform-coverage detail reads as workspace-level documentation rather than folder-specific guidance.

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?

For a three-parameter read/rollup tool with no output schema, the description covers return shape (per-platform, per-video, totals, hidden_platforms), data freshness, sync side effects, and known under-reporting causes. Nothing material needed to call it or interpret results 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%, so the baseline applies; the schema already defines days, folder_id, and include_subfolders precisely. The description adds meaning only for include_subfolders (dashboard parity) and folder_id sourcing; the days window and its published_at basis are left entirely to the schema.

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?

States a specific verb and resource ('Returns aggregated analytics for a folder') and immediately delimits scope: rollup across every video inside the folder, defaulting through subfolders. It is clearly distinguishable from the sibling get_workspace_analytics and from per-video analytics tools.

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

Usage Guidelines4/5

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

Gives concrete routing guidance for sub-tasks: use list_folders to obtain folder_id, and list_platform_connections to diagnose low numbers. It also explains the include_subfolders=true/false tradeoff, which is effectively when-to-use guidance. It never explicitly says when to pick this over get_workspace_analytics or get_video_analytics, leaving that inference to the agent.

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.