Skip to main content
Glama

Get post metrics

get_post_metrics
Read-only

How the published posts did: one row per post and platform with views, reach, likes, comments, shares, saves and profileVisits as the platform reports them (a number it doesn't report is left out: Instagram reports profileVisits for feed posts and carousels, never for Reels), engagement (likes + comments + shares + saves), and lastSyncedAt. Each row also says what the post was made as: postType (single, carousel, video), style (the carousel style its slides were drawn in, if any) and durationSeconds (a video's length). The numbers are read live from Instagram, TikTok, Facebook (connected through Post for Me), X and YouTube on every call, as the Analytics page does. A row with error could not be read this time (the account needs a reconnect, or TikTok has not given the video an id yet); its numbers are the last good ones. overview totals the posts Simplo published in the range. With groupBy (postType or style), overview.groups breaks it down: per format or carousel style, postCount (rows), totals and medians of each number over the rows that reported it, over every row in the range and not only the ones returned (style "none" holds pictures, videos and plain slides). Compare medians: one big post skews totals. With includeOutside: true, outside also lists the posts on the connected accounts that Simplo did not publish (made in the platform's app or another tool), with their numbers, sorted and limited the same way; they have a platformPostId and url instead of a postId. outside.accounts says which accounts were read and why any could not be (read: false with a reason, such as a reconnect; only Instagram and TikTok are read). On TikTok, unmatchedSimploPosts counts Simplo posts TikTok has not given a video id yet, which may appear among the outside posts. Use it before planning to see what worked: sort by engagement or reach, and pass includeOutside to count every post on the account; order: "asc" lists the posts that did worst first. Follower counts are in get_account_summary.

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": {
      "projectId": "<projectId>"
    },
    "name": "get_post_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoPosts published in the last 7, 30 or 90 days
sortNorecent (newest first), engagement, reach or views (highest first)recent
limitNoRows to return (and outside rows, separately)
orderNodesc (highest or newest first) or asc (lowest or oldest first: the posts that did worst); rows without the number come last either waydesc
postIdNoOnly this post (published within days)
groupByNoBreak the overview down by postType (carousels against Reels and pictures) or style (one carousel style against another)
platformNoOnly this platform
projectIdYesSimplo project id (from list_projects)
includeOutsideNoAlso list the posts on the accounts that Simplo did not publish

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "instagram",
      -  "tiktok",
      -  "x",
      -  "youtube"
      -]New value: +[
      +  "instagram",
      +  "tiktok",
      +  "x",
      +  "facebook",
      +  "youtube"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / order
      Added value: +{
      +  "default": "desc",
      +  "description": "desc (highest or newest first) or asc (lowest or oldest first: the posts that did worst); rows without the number come last either way",
      +  "enum": [
      +    "desc",
      +    "asc"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / groupBy
      Added value: +{
      +  "description": "Break the overview down by postType (carousels against Reels and pictures) or style (one carousel style against another)",
      +  "enum": [
      +    "postType",
      +    "style"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the read-only/open-world annotations, it discloses live platform reads on every call, stale numbers on error rows, account-reconnect conditions, TikTok id limitations, and the fact that only Instagram and TikTok outside accounts are read. It also explains that groupBy totals cover every row in the range, not only returned rows.

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?

It is front-loaded with a clear opening sentence and every section adds relevant detail. It is dense and could be more structured for readability, but the length is justified by the tool's complexity and the many behavioral details.

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 carries responsibility for explaining return shape; it does this thoroughly by naming fields, error rows, overview groups, medians, outside accounts, and TikTok unmatched posts. It also points to get_account_summary for follower counts, so the boundary is clear.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even with 100% schema coverage, the description adds substantial meaning: sort and order semantics, includeOutside behavior, groupBy breakdown content, medians versus totals, and that outside rows are sorted and limited the same way. These are semantic interactions the schema alone does not convey.

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?

It states a specific resource and result: "How the published posts did: one row per post and platform" with named metrics, group breakdowns, and outside posts. It also distinguishes itself from get_account_summary by noting that "Follower counts are in get_account_summary."

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?

It gives clear usage context: "Use it before planning to see what worked: sort by engagement or reach, and pass includeOutside to count every post on the account; order: 'asc' lists the posts that did worst first." It names related tools only for follower counts, not as explicit when-not alternatives, but the intended use is clear.

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