Skip to main content
Glama

Postemi: Social Media Scheduler

get_post_analytics

Read-only

Read the analytics of one published post on its platform: views, impressions, likes, comments, shares and whatever else the platform reports for a single post.

Pass the postId from list_posts or create_post (one channel's post) and, optionally, days (default 7, at most 90). Returns each metric with its total, its change when the platform gives one, and its points.

Writes nothing. When there are no numbers, "available" is false and "reason" says why: not_published (the post has not gone out yet), no_release_id (published, but the platform has not given the post's id yet; try again later), release_missing (published, but Postemi never learned which platform post it became; the user links it in Postemi), not_supported (Postemi reads no per-post analytics from that platform; get_analytics may still have the channel's), needs_reconnect, channel_removed, or no_data. Pass the "message" on to the user; never report a missing number as zero.

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": {
      "postId": "<postId>"
    },
    "name": "get_post_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.
postIdYesThe post, a postId from list_posts or create_post.

Output Schema

NameRequiredDescriptionDefault
outputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/not-destructive, and the description adds a large amount of behavior beyond them: an exhaustive enumeration of failure reasons (not_published, no_release_id, release_missing, not_supported, needs_reconnect, channel_removed, no_data) with what each means and how to recover. It also gives an explicit presentation rule — pass 'message' to the user and never report a missing number as zero — which is exactly the kind of context 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?

Front-loaded with purpose and argument, then behavior, then error semantics — a sensible order with no filler sentences. The long parenthetical reason list is dense but every entry carries distinct recovery information, so it earns its space.

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?

Even though an output schema exists, the description covers the response contract (metric total, change, points) and, critically, the 'available'/'reason' semantics that determine how results should be interpreted. For a read tool with platform-dependent behavior across many integrations, nothing an agent needs to call or report it correctly 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 coverage is 100%, so both postId and days are already documented, including the 1-90 bound and default. The description adds only the nuance that a postId is one channel's post; everything else about the parameters repeats the schema, so 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?

States a specific verb and resource with explicit scope: 'Read the analytics of one published post on its platform', and enumerates the metrics (views, impressions, likes, comments, shares). The single-post scope is contrasted with the channel-level sibling ('get_analytics may still have the channel's'), so an agent can distinguish the two without opening schemas.

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?

Tells the agent where postId comes from ('from list_posts or create_post (one channel's post)') and points to get_analytics when the platform has no per-post data. It does not state a clean when-to-use/when-not pair against get_analytics for the general case, so it falls just short of full routing 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.