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.

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.7/5.0
Behavior5/5

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

Annotations already establish a safe, idempotent read, but the description adds substantial context that annotations cannot carry: deleting a post changes historical counts, the tag buckets overlap and must not be summed into `totals`, `from` is inclusive and `to` exclusive so windows tile, and the window is capped at 400 days. The engagement caveats — partial coverage via `engagement.measured`, absent metric meaning 'unreported' rather than zero, cumulative-since-publication figures sampled for about a month then frozen — are exactly the kind of non-obvious behavior an agent would otherwise get wrong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The counting definition and sibling exclusion are front-loaded; the overlapping-tag warning is a separate paragraph and the engagement hazards are broken into three scannable bullets. Length is driven by genuinely distinct rules (counting unit, overlapping buckets, partial and cumulative engagement), and no sentence merely restates the name or schema.

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 the return-value burden and does so: it names `totals`, `tags`, `engagement.values`, `engagement.measured`, `metrics`, `queue`, and the per-channel/per-tag engagement field, plus how each should be interpreted and reported. Nothing an agent needs in order to call this correctly or to summarize its output safely is missing.

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 an extra point by explaining the consequence of the boundary convention ('so adjacent windows tile without double-counting'), which tells the agent how to construct adjacent queries rather than merely restating the schema's 'inclusive'/'exclusive' labels. `timezone` is left entirely to the schema, which is acceptable given its own description already warns that invalid zones are rejected.

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 verb+resource and the exact dimensions returned: 'Publications per day, per channel, per tag and in total, over a window you name.' It then pins down the counting unit ('one submission going to one channel', with the three-accounts and five-block-thread examples) and explicitly separates itself from the sibling `get_usage`. An agent can distinguish this from `get_post_metrics` and `get_usage` without opening any schema.

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?

States one exclusion crisply — 'Analytics, not billing... Use `get_usage` for anything about allowances' — and tells the agent where tag ids come from ('keyed by the ids `list_tags` returns'). It also carves out `queue` as a real-time field that ignores the window, which prevents a misread. It stops short of naming when `get_post_metrics` or `get_posting_insights` would be the better call, so the routing is clear but incomplete.

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