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.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "https://www.youtube.com/shorts/8bE_lGbtjyY"
    },
    "name": "get_post_stats"
  }
}

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
tagsNo
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
    • addedOutput schema / properties / tags
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "hashtag_id": {
      +        "type": "string"
      +      },
      +      "tag": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tag"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. 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\"."
  3. 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\"."
  4. 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"
      +]
  5. 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"
      +]
  6. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations, which already cover read-only/idempotent/open-world: it discloses that every number carries its source, read timestamp, and a rounding flag that is explicitly not returned since an output schema exists. It also describes the not_public list with reasons, which is important behavioral detail an agent can't infer from the schema.

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-loads the core purpose and is dense with no filler, but the full URL-format enumeration is repeated verbatim in the input schema, which is a small amount of wasted text.

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 one-parameter read tool with full schema coverage, annotations, and an output schema, this covers everything an agent needs: what it reads, what it refuses to read, and how numbers are qualified.

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?

Schema coverage is 100% and the single 'url' parameter's schema description already lists every accepted URL form and an example, so the description largely restates it. The only added meaning is the requirement that the post be public.

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 (views, likes, comments, shares, saves, post time). The scope — one post, public only, YouTube or TikTok — cleanly separates it from siblings like list_channel_stats and compare_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?

Explains the supported input shapes in detail and gives an explicit exclusion with a reason: 'It never signs in, so private posts and account analytics are out of reach.' That effectively routes analytics requests elsewhere, though it doesn't name a specific alternative tool for that case.

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.