Skip to main content
Glama

Get post statistics

get_stats
Read-onlyIdempotent

Returns how published posts did over a period (default: the last 30 days): totals, numbers per network (posts, views, likes, comments, shares, followers and their change), interactions per publication day and the best posts. Use it when the user asks what worked, which network or which post performed best, or to pick the next posts' topics and times; use get_post instead for one post's numbers (each target's stats). Numbers come from Bluesky, Mastodon, Facebook, Instagram, Threads and YouTube (views too on the last three), read for 30 days after publication; X, LinkedIn and TikTok are not read (available: false), so never compare them on these numbers.

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": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the period. Default: now.
topNoHow many best posts to return (by interactions). Default 5.
fromNoStart of the period: posts published at or after this date-time. Default: 30 days before `to`.

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 a read-only, idempotent, non-destructive, closed-world call, and the description adds real context beyond them: which six networks are read, that views exist only on three of them, that metrics are collected for 30 days after publication, and that three networks return available: false. The 30-day default window and the data-coverage caveats are exactly the behavioral facts an agent cannot infer from annotations.

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 what is returned, then when to use it, then the data-coverage caveat — a sensible order with no filler sentences. It is dense, with two long parenthetical enumerations that are informative but make the middle clause harder to parse at a glance.

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 shape, and it does: totals, per-network counts and follower change, per-day interactions, and best posts. Combined with the network coverage and 30-day read window, an agent has everything needed to call and interpret this tool correctly.

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% and every parameter already carries a description with its default, so the schema does the heavy lifting. The description reinforces the default 30-day period and the notion of 'best posts' but adds no format or interaction detail (for example, how from/to relate when only one is supplied) beyond 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 (returns how published posts did over a period) and enumerates the returned aggregates: totals, per-network numbers, interactions per publication day, best posts. It explicitly distinguishes itself from get_post, which covers a single post's numbers, so an agent can choose 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 explicit when-to-use triggers (what worked, which network or post performed best, picking next topics and times) and names the alternative get_post with the condition that selects it. It adds a hard exclusion — X, LinkedIn and TikTok are not read and must never be compared on these numbers — which prevents a whole class of misuse.

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