Skip to main content
Glama

Get one submission’s engagement over time

get_post_metrics
Read-onlyIdempotent

Every engagement reading stored for one submission, per channel, oldest first. get_stats sums the LATEST reading of many posts over a window; this is every reading of one post, which is what answers "is it still growing" rather than "how did the month go".

Read these four things before saying anything to a user about a curve:

  • THE VALUES ARE CUMULATIVE. Each reading is the platform’s running total at that instant, not what was earned since the last one. To describe growth, take the DIFFERENCE between two readings — reading them as per-interval figures would report a steady post as an explosive one.

  • THE POINTS ARE NOT EVENLY SPACED. Sampling decays: roughly hourly for a day, daily for a week, weekly to thirty days, then it stops. Use capturedAt, never position in the list, and never describe a post older than a month as having "stopped earning" — we merely stopped looking.

  • AN ABSENT METRIC IS NOT A ZERO, the same rule as everywhere else. A key missing from a reading’s values was not reported at that capture.

  • SOME PLATFORMS’ READINGS DO NOT OUTLIVE A DISCONNECT. Where list_platforms reports deletesDataOnDisconnect, the platform’s terms require deleting what its API returned once access ends, so disconnecting the channel (or the user revoking access at the platform) deletes its readings and its remoteUrl. Elsewhere readings outlive a disconnect.

  • AN EMPTY readings IS NORMAL. Most platforms report no engagement at all. It does not mean the post did badly, and saying so would be inventing a result. Call list_channels and read that channel’s metricsStatus to find out which it is: unsupported (nothing to fix), needs-reconnect (the user must re-authorize), or reporting (it simply has not been swept yet).

Do not compare a 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": {
      "id": "<id>"
    },
    "name": "get_post_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe submission id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/no-destructive; the description adds substantial semantics beyond them — values are cumulative running totals, sampling decays and eventually stops, readings and `remoteUrl` are deleted on disconnect where `deletesDataOnDisconnect` is set, and a missing key means unreported rather than zero. These are exactly the facts that prevent an agent from misreporting a curve.

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 the core statement, then bulleted caveats that each address a distinct failure mode. Minor flaw: it says "Read these four things" but presents five bullets, and the closing cross-platform sentence duplicates the theme of the cumulative-values bullet, so it is slightly longer than strictly necessary.

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?

No output schema exists, so the description must explain the return shape — and it does, covering `readings`, cumulative `values`, `capturedAt`, and `remoteUrl` deletion. Given a single-parameter read tool, nothing an agent needs in order to call or interpret it 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?

There is a single parameter (`id`) whose schema description coverage is 100%, so the schema already carries the meaning. The description implies the id scopes to one submission but adds no format, lookup, or validation detail beyond that. Baseline 3 is appropriate when the schema does the work.

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?

The opening sentence gives a specific verb and resource — every engagement reading stored for one submission, per channel, oldest first — and immediately contrasts it with `get_stats` (latest reading of many posts over a window). An agent can distinguish the two tools 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?

It explicitly names the alternative and the question each answers ("is it still growing" vs "how did the month go"), and adds a fallback path: when `readings` is empty, call `list_channels` and read `metricsStatus` to distinguish unsupported / needs-reconnect / reporting. When-not guidance is also present, e.g. do not compare figures across platforms.

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