Skip to main content
Glama

Get Analytics

autoposter_get_analytics
Read-only

Reads performance analytics. level 'posts' (default) returns per-post metrics (impressions, views, likes, comments, shares, clicks, ...) with totals for a date range or for one post. level 'accounts' returns the latest account-level snapshot (followers, reach, impressions, engagement, ...) per connected account, plus a daily series when from/to are given. Data is synced periodically, so very recent posts may have no metrics yet.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "autoposter_get_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD (inclusive). Default: today (UTC). Max range 90 days.
fromNoStart date YYYY-MM-DD (inclusive). Default: 14 days before 'to'.
levelNo'posts' (default) or 'accounts'.
limitNoMax posts or series rows returned (default 20, max 50). Totals always cover all matches.
postIdNolevel 'posts' only: return analytics for this post (from autoposter_list_posts).
platformNolevel 'posts' only: limit to one platform, e.g. 'instagram'.
accountIdsNoLimit to these accounts (IDs from autoposter_list_accounts).

Output Schema

NameRequiredDescriptionDefault
levelYes'posts' or 'accounts'.
postsNolevel 'posts': per-post metrics, newest first.
summaryNolevel 'posts': post counts and summed metrics over successful rows.
accountsNolevel 'accounts': latest snapshot (and series) per account.
dateRangeNoApplied from/to dates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description adds genuinely useful behavioral context beyond that: data is synced on a delay, so recent posts may have no metrics, which prevents an agent from misreading empty results as an error. It does not cover rate limits, pagination behavior, or result ordering, which keeps 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?

Three tightly packed sentences, front-loaded with the core action, then the level semantics, then the staleness caveat. No filler, no restatement of the tool name, and each sentence carries decision-relevant 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 an output schema present and full schema coverage, the description need not explain return values or filter syntax, and it covers the main conceptual risks (mode confusion, sync delay). The only minor gap is that the optional filters (postId, platform, accountIds) and their interplay with level are never acknowledged in prose.

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 100%, so baseline is 3, and the description earns an increment by explaining what the level parameter actually changes in the returned payload (per-post metrics with totals vs. account snapshot plus daily series). It adds little for the remaining filters (postId, platform, accountIds), which 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 ("Reads performance analytics") and then splits the tool's two modes with explicit return contents for each: per-post metrics for 'posts' and account snapshots plus daily series for 'accounts'. An agent can distinguish this from siblings like autoposter_get_post or autoposter_list_accounts 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?

Gives clear selection logic between the two levels ('posts' default for per-post metrics with totals, 'accounts' for account snapshots and a daily series when from/to are supplied), so the agent knows which mode to pick. It stops short of naming alternatives or exclusions (e.g. when to use list_posts or get_post instead), so it is clear context rather than full when/when-not guidance.

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.

Resources