Skip to main content
Glama

Get post stats

get_post_stats
Read-onlyIdempotent

Performance of published posts: one (post_id from publish_post or list_scheduled_posts; YouTube is "yt:") or the most recent. Per account: link, views, reach, likes, comments, shares, saves, engagement (null if unreported), raw figures, and status (published, processing = no stats yet, unconfirmed, failed). Paid or boosted copies (ads) aren't counted. Never post the same media again because a post reads failed, unconfirmed or processing: check the earlier post first. A repost to the same account within 24h still goes out, with a duplicate_warning.

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_post_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 10.
post_idNoLeave out for recent posts.
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"How many recent posts (default 10)."New value: +"Default 10."
    • changedInput schema / properties / post_id / description
      Previous value: -"One post. Leave out for the recent ones."New value: +"Leave out for recent posts."
    • removedInput schema / properties / project_id / description
      Removed value: -"Workspace to work in (from list_projects). Leave out for the default one."
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent annotations: engagement can be null when unreported, paid or boosted copies are excluded from counts, and the status vocabulary (published, processing = no stats yet, unconfirmed, failed) is enumerated. It also discloses that a same-account repost within 24h still goes out but returns a duplicate_warning, which is real behavioral detail an agent cannot get from structured fields.

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 the tool returns, then the post_id sourcing rule, then caveats — a sensible order. The final repost/duplicate_warning sentences are slightly advisory rather than descriptive, but they carry genuine operational value and are not filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly enumerates the returned per-account fields and status values, which is exactly what an agent needs. Remaining gaps are minor: project_id is undefined and the limit parameter's effect (capping the recent-posts list) is only implied by the schema.

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 67% and the description meaningfully extends the post_id parameter with its provenance (publish_post / list_scheduled_posts) and the YouTube 'yt:<video id>' format, none of which the schema states. It adds nothing for limit (schema already says default 10) and leaves project_id entirely unexplained in both places.

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 scope ('Performance of published posts') and immediately distinguishes the two retrieval modes: a single post by post_id versus the most recent. The list of returned metrics (views, reach, likes, comments, shares, saves, engagement, status) makes it unambiguous what this tool produces versus a listing tool like list_scheduled_posts.

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?

Gives clear operative guidance: omit post_id for recent posts, source post_id from publish_post or list_scheduled_posts, and use the 'yt:<video id>' form for YouTube. It also tells the agent to check the earlier post before reposting media that reads failed/unconfirmed/processing. It stops short of naming when to prefer get_overview_stats for aggregate rather than per-post numbers.

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.