Skip to main content
Glama

Postemi: Social Media Scheduler

get_analytics

Read-only

Read the analytics of one connected social media channel for the last N days: reach, impressions, followers, likes, views and whatever else the platform reports for that account (the metrics differ per platform).

Pass the integrationId from list_integrations and, optionally, days (default 7, at most 90). Returns each metric with its total for the window (a sum, or an average for rates and durations), its change against the previous window when the platform gives one, and the points per day.

Writes nothing. When there are no numbers, "available" is false and "reason" says why: the channel must be reconnected in Postemi (needs_reconnect), Postemi reads no analytics from that platform (not_supported), or the platform returned nothing for the window (no_data). Pass the "message" on to the user; never report a missing number as zero.

For one published post, use get_post_analytics.

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": {
      "integrationId": "<integrationId>"
    },
    "name": "get_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days back to look, 1 to 90. Defaults to 7. The usual windows are 7, 30 and 90. YouTube gives at most the last 30 days.
integrationIdYesThe channel, an id from list_integrations.

Output Schema

NameRequiredDescriptionDefault
outputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description goes further by enumerating the empty-result states (needs_reconnect, not_supported, no_data) and warning never to report a missing number as zero. It also explains how totals are computed (sum, or average for rates and durations) and that metrics differ per platform, which is behavioral context the annotations cannot convey.

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?

Four short paragraphs, front-loaded with purpose then inputs then output shape then error handling, all of which are useful. 'Writes nothing' slightly duplicates the readOnlyHint annotation, but it is a single clause and not a meaningful cost.

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?

An output schema exists, so return-value detail is optional, yet the description still summarizes what each metric carries (total, change vs previous window, per-day points). Combined with the failure-mode enumeration, an agent has everything needed to call it and to interpret an empty response.

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% and the schema already documents both parameters including the 1-90 range and default of 7. The description largely restates those bounds; its only marginal additions are the typical window values (7/30/90) and the YouTube 30-day limit. Baseline 3 is appropriate when the schema carries the parameter documentation.

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 ('Read the analytics of one connected social media channel') with explicit scope ('last N days') and names the metrics returned. It also distinguishes itself from the sibling get_post_analytics, which handles single posts, so an agent can route without opening either schema.

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 the concrete entry path ('Pass the integrationId from list_integrations') and an explicit exclusion with the alternative ('For one published post, use get_post_analytics'). The days parameter also has stated defaults, typical windows, and a platform cap, leaving little to infer.

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.