Skip to main content
Glama

Get publishing stats

get_stats
Read-onlyIdempotent

Publications per day, per channel, per tag and in total, over a window you name. One publication is one submission going to one channel — a post sent to three accounts counts three times, and a five-block thread counts once.

tags answers "how did the launch-week posts do", keyed by the ids list_tags returns. Those counts OVERLAP: a post filed under two tags is counted under both and an untagged post under neither, so they do not add up to totals and must never be reported as shares of it.

Analytics, not billing: these are counted from the posts themselves, so deleting a post changes the history. Use get_usage for anything about allowances.

from is inclusive and to is exclusive, so adjacent windows tile without double-counting. queue describes right now and ignores the window entirely.

ENGAGEMENT — engagement, and the same field on each channel and tag — is what the PLATFORMS reported about the posts, not something counted here, and it needs reading carefully before you say anything to the user about it:

  • It is PARTIAL. Only some platforms report engagement at all, so figures may cover a fraction of what was published. engagement.measured says how many publications carried any reading; say so when it is less than totals.published rather than presenting the number as the whole picture.

  • A METRIC MISSING FROM engagement.values MEANS NOBODY REPORTED IT, not that it was zero. Never fill one in as 0, and never state that a post got no impressions because impressions is absent — the platform may simply not measure it. metrics lists the names actually present.

  • The figures are CUMULATIVE SINCE EACH POST WENT OUT, not earned during the window, and they are still moving. They are sampled for roughly a month after publication and then stop, so a post older than that is frozen at its last reading.

Publications whose account was disconnected collect in one channel row with a null channelId, except on a platform whose list_platforms entry reports deletesDataOnDisconnect: its terms require deleting API data once access ends, so a disconnected channel’s publications and readings there leave these figures entirely. A drop after a disconnect is that, not lost engagement.

Do not compare an engagement figure between two channels on different platforms as though it meant the same thing. A like on one platform and a like on another are different acts with different populations behind them.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesExclusive end of the window, ISO 8601. At most 400 days after `from`.
fromYesInclusive start of the window, ISO 8601.
timezoneNoIANA zone the daily buckets are cut at, e.g. `Europe/Paris`. Defaults to UTC. A value that is not a real zone is rejected rather than ignored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world and non-destructive, so the description's job is to add domain behavior — and it does: history mutates when posts are deleted, disconnect handling with a null `channelId` row, the `deletesDataOnDisconnect` exception, and ~one month of engagement sampling. What keeps it from a 5 is that the `queue` field is referenced but never characterized beyond 'describes right now', leaving one returned value's shape and freshness partly implicit.

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 counting semantics, then organized into clearly scoped paragraphs, with the engagement caveats grouped under an explicit heading. It is long, but nearly every sentence carries a distinct rule; the cross-platform comparison warning at the end is the one place the prose could be tightened.

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-value burden, and it does: totals, per-channel and per-tag structure, overlapping tag counts, null `channelId` rows, and the `engagement.measured` / `engagement.values` / `metrics` fields with the missing-means-unreported rule. Nothing an agent needs to report these figures honestly is left out.

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 the baseline is 3; the description earns above that by explaining the tiling consequence of inclusive `from` / exclusive `to` ('adjacent windows tile without double-counting') and by noting that `queue` ignores the window entirely. It adds no extra guidance for `timezone` beyond what the schema states.

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?

Opens with a specific resource and its breakdowns ('Publications per day, per channel, per tag and in total, over a window you name') and immediately defines the counting unit — one submission to one channel — which removes the main ambiguity for a stats tool. It also distinguishes itself from the sibling `get_usage` in the same breath.

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?

Explicitly routes allowance/billing questions to `get_usage`, points tag queries at `list_tags` for ids, and warns against treating overlapping tag counts as shares of totals. It even gives a negative guideline — do not compare engagement across platforms — which is the kind of exclusion most definitions omit.

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