Skip to main content
Glama

Schedchie Social Media Scheduler

Account analytics (any platform, date range)

get_account_analytics
Read-only

One account's analytics for a date range, on every platform: KPIs with previous-period values when compare=true, day series (followers, impressions/views, engagement, …) where the platform or our snapshots have them, a per-post table with the platform's own numbers, TikTok videos' viewer retention as posts[].retention: [second, percent still watching] pairs, every second for videos up to a minute and 61 evenly spaced readings for longer ones (absent when TikTok sent none), audience breakdowns where the platform reports them, and access explaining anything missing (permissions_required / reconnect_required / unavailable). notes carry the caveats on what the numbers cover; gaps are left empty, never estimated. Supersedes the per-platform get_*_analytics tools.

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": {
      "accountId": "<accountId>"
    },
    "name": "get_account_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRange end, YYYY-MM-DD (UTC), inclusive. Default: today
daysNoRange length when `from` is omitted (default 30)
fromNoRange start, YYYY-MM-DD (UTC). Default: `days` before `to`
compareNoAlso return the previous period of the same length for comparison
accountIdYesThe account's accountId (see list_accounts)
workspaceNoAct in a team workspace: the owner's id from whoami's memberOfWorkspaces[].ownerId. Omit to act in your own workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it is a safe, closed read; the description goes well beyond that by disclosing the failure modes and data-quality contract: `access` reports permissions_required / reconnect_required / unavailable, `notes` carry caveats on coverage, and gaps are "left empty, never estimated." It also pins down the retention data shape ([second, percent still watching]), its granularity rules (every second up to a minute, 61 spaced readings beyond), and that it is absent when the platform sent none.

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?

The resource and scope are front-loaded, and the long enumeration of returned sections is dense but every clause carries information (retention format, empty-not-estimated rule, access codes). It is one very long comma-chained sentence whose return-value list would be easier to scan as separate sentences or bullets, but there is little dead weight.

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?

There is no output schema, so the description must carry the return-value burden, and it does: it describes each response section, the error/permission signalling via `access`, and the null-handling policy. For a cross-platform analytics read with six parameters, nothing an agent needs to interpret results correctly appears to be 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 defaults, formats, and the `days`/`from`/`to` interplay are already fully documented in the schema. The description's only parameter-level addition is the meaning of `compare=true` (KPIs gain previous-period values), which largely restates the schema's "Also return the previous period". Baseline 3 is appropriate.

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 resource (one account's analytics) plus scope (date range, every platform) and enumerates the concrete outputs: KPIs with previous-period values, day series, per-post table, TikTok retention pairs, audience breakdowns, and an `access` object. It also names the class of tools it replaces (the per-platform get_*_analytics tools), so an agent can distinguish it from siblings without opening the schema.

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?

"Supersedes the per-platform get_*_analytics tools" gives explicit routing guidance away from alternatives for the same data, and "compare=true" is given a use condition. It stops short of telling the agent when to prefer get_analytics_overview/get_analytics_summary or the more specialized tools (get_best_times, get_linkedin_post_engagement), so the exclusion set is only partially drawn.

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.