Skip to main content
Glama

Get a post's public stats

get_post_stats
Read-onlyIdempotent

Read the public numbers of one post: views, likes, comments, shares, saves and the post time, for a YouTube video or Short (youtube.com/watch?v=, youtube.com/shorts/, youtu.be/, or the bare 11-character video id) or a TikTok video (tiktok.com/@user/video/, tiktok.com/video/, or a vm.tiktok.com or vt.tiktok.com short link). Each number comes with its source (which public page or free API), when it was read, and whether the platform rounded it. Numbers the platform keeps private are listed in not_public with the reason. It never signs in, so private posts and account analytics are out of reach.

Input Schema

NameRequiredDescriptionDefault
urlYesAddress of one public post: a YouTube video or Short (youtube.com/watch?v=<id>, youtube.com/shorts/<id>, youtu.be/<id>, or the bare 11-character video id) or a TikTok video (tiktok.com/@user/video/<id>, tiktok.com/video/<id>, or a vm.tiktok.com or vt.tiktok.com short link). Example: "https://www.youtube.com/shorts/8bE_lGbtjyY".

Output Schema

NameRequiredDescriptionDefault
urlYes
as_ofYesISO 8601 time the data was published by its source or fetched from it. A cached answer keeps the time of its fetch.
errorNo
statsNo
titleNo
authorNo
sourceYesWho the data comes from, to cite and to check it against.
statusYes
post_idNo
sourcesNo
platformYes
posted_atNo
from_cacheNo
not_publicNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Address of one public post: a YouTube video or Short (youtube.com/watch?v=<id>, youtube.com/shorts/<id>, youtu.be/<id>, or the bare 11-character video id) or a TikTok video (tiktok.com/@user/video/<id>). Example: \"https://www.youtube.com/shorts/8bE_lGbtjyY\"."New value: +"Address of one public post: a YouTube video or Short (youtube.com/watch?v=<id>, youtube.com/shorts/<id>, youtu.be/<id>, or the bare 11-character video id) or a TikTok video (tiktok.com/@user/video/<id>, tiktok.com/video/<id>, or a vm.tiktok.com or vt.tiktok.com short link). Example: \"https://www.youtube.com/shorts/8bE_lGbtjyY\"."
  2. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Full address of one public post: a YouTube video or Short, or a TikTok video. Example: \"https://www.youtube.com/shorts/8bE_lGbtjyY\"."New value: +"Address of one public post: a YouTube video or Short (youtube.com/watch?v=<id>, youtube.com/shorts/<id>, youtu.be/<id>, or the bare 11-character video id) or a TikTok video (tiktok.com/@user/video/<id>). Example: \"https://www.youtube.com/shorts/8bE_lGbtjyY\"."
  3. Changed2 schema fields changed
    • changedInput schema / properties / url / description
      Previous value: -"Full address of one public post: a YouTube video or Short, a TikTok video, or an X post. Example: \"https://www.youtube.com/shorts/8bE_lGbtjyY\"."New value: +"Full address of one public post: a YouTube video or Short, or a TikTok video. Example: \"https://www.youtube.com/shorts/8bE_lGbtjyY\"."
    • changedOutput schema / properties / platform / enum
      Previous value: -[
      -  "youtube",
      -  "tiktok",
      -  "x"
      -]New value: +[
      +  "youtube",
      +  "tiktok"
      +]
  4. Changed3 schema fields changed
    • addedOutput schema / properties / as_of
      Added value: +{
      +  "description": "ISO 8601 time the data was published by its source or fetched from it. A cached answer keeps the time of its fetch.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / source
      Added value: +{
      +  "description": "Who the data comes from, to cite and to check it against.",
      +  "properties": {
      +    "name": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "url"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "url",
      -  "platform",
      -  "status"
      -]New value: +[
      +  "url",
      +  "platform",
      +  "status",
      +  "as_of",
      +  "source"
      +]
  5. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered. The description adds real value beyond that: each number carries its source, read timestamp, and rounding flag, and private metrics appear in not_public with a reason, plus the no-authentication constraint. It says nothing about error behavior for malformed or non-existent URLs or about rate limits, which is the main remaining gap.

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?

Purpose and metric list are front-loaded, and the closing sentence on no sign-in is a well-placed caveat. The URL-format enumeration is duplicated almost word-for-word from the schema description, which is wasted text in an otherwise tight paragraph.

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?

For a single-URL read tool with a full output schema, this covers everything an agent needs: accepted inputs, what each returned number means (source, read time, rounding), how non-public metrics are surfaced, and the fundamental scope limit of no authentication. Return-value explanation is a bonus rather than a substitute for the output schema.

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?

With one parameter at 100% schema coverage, the schema already documents the accepted URL forms and the example. The description restates the same URL formats verbatim rather than adding new semantics (e.g., whether bare IDs are preferred or how short-link redirects are resolved), so a baseline 3 is appropriate.

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 ('Read the public numbers of one post') and enumerates exactly which metrics come back (views, likes, comments, shares, saves, post time). The 'one post' framing plus the platform list makes it clearly distinct from siblings like compare_posts (multiple posts) and list_channel_stats (channel level).

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 applicability boundaries: works on public YouTube/Short and TikTok URLs, and explicitly excludes private posts and account analytics because the tool never signs in. It does not name sibling tools or say when to prefer compare_posts or list_channel_stats, so it stops short of full alternative routing.

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.