Skip to main content
Glama

ViralVideoSearch

Find outlier videos in a niche

find_outliers
Read-onlyIdempotent

Find the shared-corpus videos in one niche that most beat their baseline, ranked by outlier_score (views ÷ the creator's own median when VVS has 3+ of their videos, otherwise ÷ the niche or platform median; see baseline_source), never by raw views. Use it to answer "what is over-performing in "; use winning_hooks for opening lines only, breakout_creators for accounts rather than videos, creator_teardown for one creator, and search_viral_videos for the caller's own saved library. Returns {niche, days, data_as_of, videos:[{video_id, source_url, platform, creator, creator_followers, views, outlier_score, baseline_source, baseline_median_views, hook_text, hook_style, format_type, pacing, duration_seconds, recreate_url, ...}], empty_reason?}. Free accounts get 5 rows with only hook_text and format_type, plus upgrade_url. Read-only. Requires a VVS API key or OAuth; 60 calls/minute per account.

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": {
      "niche": "<niche>"
    },
    "name": "find_outliers"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoOnly videos posted in the last N days.
limitNoMaximum videos to return.
nicheYesNiche slug from list_niches, e.g. "personal-finance". Labels such as "Personal Finance" are also accepted; an unknown niche returns an error listing valid slugs.
platformNoOnly this platform. Omit for all.
format_typeNoOnly formats containing this text (case-insensitive substring), e.g. "talking head", "pov", "tutorial". Omit for all formats.
max_followersNoOnly creators at or below this follower count. When set, creators with unknown follower counts (most Instagram accounts) are excluded. Omit for no ceiling.
include_sponsoredNoInclude posts flagged as sponsored.

Output Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days that was applied.
noteNoExtra caveat when max_followers is set.
tierNo"paid" or "free"; free accounts get truncated rows and fewer fields.
nicheNoResolved niche slug.
methodNoHow the ranking or stages were computed.
videosNoOutlier videos, highest outlier_score first.
rankingNoHow outlier_score is computed.
truncatedNoFree tier only: true when more rows exist than were returned.
data_as_ofNoTime of the newest capture in this niche (ISO 8601).
free_limitsNoFree tier only: what free accounts can see.
upgrade_urlNoFree tier only: pricing page link to upgrade.
empty_reasonNoPresent only when no rows matched; explains why and what to try.
total_availableNoFree tier only: rows available before free-tier truncation.
upgrade_unlocksNoFree tier only: what upgrading unlocks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "data_as_of": {
      +      "description": "Time of the newest capture in this niche (ISO 8601).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "days": {
      +      "description": "Look-back window in days that was applied.",
      +      "type": "integer"
      +    },
      +    "empty_reason": {
      +      "description": "Present only when no rows matched; explains why and what to try.",
      +      "type": "string"
      +    },
      +    "free_limits": {
      +      "description": "Free tier only: what free accounts can see.",
      +      "type": "string"
      +    },
      +    "method": {
      +      "description": "How the ranking or stages were computed.",
      +      "type": "string"
      +    },
      +    "niche": {
      +      "description": "Resolved niche slug.",
      +      "type": "string"
      +    },
      +    "note": {
      +      "description": "Extra caveat when max_followers is set.",
      +      "type": "string"
      +    },
      +    "ranking": {
      +      "description": "How outlier_score is computed.",
      +      "type": "string"
      +    },
      +    "tier": {
      +      "description": "\"paid\" or \"free\"; free accounts get truncated rows and fewer fields.",
      +      "type": "string"
      +    },
      +    "total_available": {
      +      "description": "Free tier only: rows available before free-tier truncation.",
      +      "type": "integer"
      +    },
      +    "truncated": {
      +      "description": "Free tier only: true when more rows exist than were returned.",
      +      "type": "boolean"
      +    },
      +    "upgrade_unlocks": {
      +      "description": "Free tier only: what upgrading unlocks.",
      +      "type": "string"
      +    },
      +    "upgrade_url": {
      +      "description": "Free tier only: pricing page link to upgrade.",
      +      "type": "string"
      +    },
      +    "videos": {
      +      "description": "Outlier videos, highest outlier_score first.",
      +      "items": {
      +        "additionalProperties": true,
      +        "description": "One corpus video.",
      +        "properties": {
      +          "analyzed": {
      +            "description": "True when VVS has an AI analysis of the video.",
      +            "type": "boolean"
      +          },
      +          "baseline_median_views": {
      +            "description": "Median views of the baseline.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "baseline_source": {
      +            "description": "Baseline used: creator, niche or platform.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "caption": {
      +            "description": "Caption, first 200 characters.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "creator": {
      +            "description": "Creator handle with leading @.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "creator_followers": {
      +            "description": "Creator follower count; null when unknown.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "duration_seconds": {
      +            "description": "Video length in seconds.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "emotional_angle": {
      +            "description": "Emotional angle label (paid only).",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "format_type": {
      +            "description": "Format label.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "hook_style": {
      +            "description": "Hook style label (paid only).",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "hook_text": {
      +            "description": "Opening hook line from the AI analysis.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "niche": {
      +            "description": "Niche slug the video belongs to.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "outlier_score": {
      +            "description": "Views divided by the baseline median.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "pacing": {
      +            "description": "Pacing label (paid only).",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "pattern_summary": {
      +            "description": "Short pattern summary (paid only).",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "platform": {
      +            "description": "tiktok, instagram or youtube.",
      +            "type": "string"
      +          },
      +          "posted_at": {
      +            "description": "Upload time (ISO 8601).",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "recreate_url": {
      +            "description": "Public VVS recreation page, if published.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "sound_name": {
      +            "description": "Sound or track name.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source_url": {
      +            "description": "Public link to the original video.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "thumbnail_url": {
      +            "description": "Thumbnail image URL.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "video_id": {
      +            "description": "VVS video UUID; pass to get_corpus_analysis, get_recreation_plan or save_video.",
      +            "type": "string"
      +          },
      +          "views": {
      +            "description": "View count at the latest capture.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed25 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Only videos posted in the last N days (default 30)."New value: +"Only videos posted in the last N days."
    • addedInput schema / properties / days / examples
      Added value: +[
      +  30
      +]
    • addedInput schema / properties / days / maximum
      Added value: +365
    • addedInput schema / properties / days / minimum
      Added value: +1
    • changedInput schema / properties / days / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / format_type / description
      Previous value: -"Filter by format, e.g. \"talking head\", \"pov\", \"tutorial\"."New value: +"Only formats containing this text (case-insensitive substring), e.g. \"talking head\", \"pov\", \"tutorial\". Omit for all formats."
    • addedInput schema / properties / format_type / examples
      Added value: +[
      +  "talking head"
      +]
    • addedInput schema / properties / format_type / maxLength
      Added value: +60
    • changedInput schema / properties / include_sponsored / description
      Previous value: -"Include sponsored posts (default false)."New value: +"Include posts flagged as sponsored."
    • changedInput schema / properties / limit / description
      Previous value: -"Max rows (default 15, max 50)."New value: +"Maximum videos to return."
    • addedInput schema / properties / limit / examples
      Added value: +[
      +  15
      +]
    • addedInput schema / properties / limit / maximum
      Added value: +50
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / max_followers / description
      Previous value: -"Only creators at or below this follower count."New value: +"Only creators at or below this follower count. When set, creators with unknown follower counts (most Instagram accounts) are excluded. Omit for no ceiling."
    • addedInput schema / properties / max_followers / examples
      Added value: +[
      +  50000
      +]
    • addedInput schema / properties / max_followers / maximum
      Added value: +1000000000000
    • addedInput schema / properties / max_followers / minimum
      Added value: +0
    • changedInput schema / properties / max_followers / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / niche / description
      Previous value: -"Niche slug from list_niches (labels are also accepted)."New value: +"Niche slug from list_niches, e.g. \"personal-finance\". Labels such as \"Personal Finance\" are also accepted; an unknown niche returns an error listing valid slugs."
    • addedInput schema / properties / niche / examples
      Added value: +[
      +  "personal-finance"
      +]
    • addedInput schema / properties / niche / maxLength
      Added value: +100
    • addedInput schema / properties / niche / minLength
      Added value: +1
    • changedInput schema / properties / platform / description
      Previous value: -"Optional platform filter."New value: +"Only this platform. Omit for all."
    • addedInput schema / properties / platform / examples
      Added value: +[
      +  "tiktok"
      +]
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, but the description adds behavior they cannot express: API-key-or-OAuth auth requirement, a 60 calls/minute rate limit, and a concrete free-tier degradation (5 rows, only hook_text and format_type, plus upgrade_url). It also discloses the response envelope and the optional empty_reason, so an agent knows both the access constraints and what a thin result looks like.

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 ranking rule before the alternatives and the return shape, and nearly every clause carries operational information. The first sentence is dense with nested parentheticals, which slows parsing slightly, but nothing is filler.

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 7-parameter, open-world tool with a nested return payload, the description covers purpose, ranking semantics, tier limitations, auth, rate limits, and result shape. Even though an output schema exists, the free-tier truncation and empty_reason are behaviors an agent needs before calling and are adequately surfaced.

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 100%, so parameters are already documented and baseline 3 applies; the description nonetheless adds meaning the schema cannot, notably that the free tier caps rows at 5 regardless of the documented default 15 / max 50 on limit. It also explains that baseline_source varies per row, which is how the ranking metric should be interpreted.

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 (find shared-corpus videos in one niche) and immediately pins the ranking semantics: ranked by outlier_score, 'never by raw views'. That negation plus the definition of outlier_score (views ÷ creator median, else niche/platform median) makes it unmistakable against any generic video-search tool.

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?

Gives an explicit use case ('what is over-performing in <niche>') and routes four named siblings by condition: winning_hooks for opening lines, breakout_creators for accounts, creator_teardown for one creator, search_viral_videos for the caller's own library. Exclusions and alternatives are both present, so no inference is required.

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