Compare posts by views
compare_postsRead 2 to 10 public posts (YouTube and TikTok can be mixed) and rank them by views, with likes per 1,000 views for each. Every row has the same fields as get_post_stats; a post that could not be read stays in the list with its error, ranked last.
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": {
"urls": [
"https://youtu.be/_0G4OG39XjI",
"https://www.youtube.com/watch?v=_0G4OG39XjI"
]
},
"name": "compare_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | 2 to 10 post addresses. 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). Platforms can be mixed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| as_of | Yes | ISO 8601 time the data was published by its source or fetched from it. A cached answer keeps the time of its fetch. | |
| notes | No | ||
| posts | Yes | ||
| source | Yes | Who the data comes from, to cite and to check it against. | |
| ranked_by | Yes |