Skip to main content
Glama

Search viral content

search_viral_content
Read-only

Searches trending posts about a topic and ranks them by trend_score (reach + engagement + virality relative to the creator's size). Networks: tiktok, instagram (Reels), youtube, x, threads, reddit and instagram_carousel (Instagram carousels and photos). Without platforms it searches tiktok, instagram, youtube and x. Use instagram_carousel when the user asks for carousels or photos, reddit or threads for discussions or text. Costs 4 credits per network; x costs 8 and instagram_carousel costs 100 (it finds authors by hashtag and reads their grid).

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": {
      "query": "<query>"
    },
    "name": "search_viral_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
exactNoSearches the text exactly as typed, without fixing typos (default false: the topic is corrected and the reply includes expanded_terms)
limitNoMaximum results (default 10)
queryYesTopic or keyword, e.g. "marketing for dentists"
periodNoTime window (default week)
regionNoCountry, ISO-3166 (BR, US, PT...): filters TikTok by country and X by language (BR = Portuguese). Omit for global. Use BR when the user writes in Portuguese and wants the Brazilian market
platformsNoNetworks (default: tiktok, instagram, youtube, x)
max_followersNoOnly creators with up to N followers. Use when the user asks for small accounts, micro-creators or prospecting (e.g. 10000). Results include a verified author.followers, so analyze_creator is not needed just to check followers.
min_followersNoOnly creators with at least N followers

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / exact
      Added value: +{
      +  "description": "Searches the text exactly as typed, without fixing typos (default false: the topic is corrected and the reply includes expanded_terms)",
      +  "type": "boolean"
      +}
  2. Changed7 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Máximo de resultados (padrão 10)"New value: +"Maximum results (default 10)"
    • changedInput schema / properties / max_followers / description
      Previous value: -"Só criadores com até N seguidores. Use quando o usuário pedir perfis pequenos, micro-criadores ou prospecção (ex.: 10000). Os resultados trazem author.followers verificado; não chame analyze_creator só para conferir seguidores."New value: +"Only creators with up to N followers. Use when the user asks for small accounts, micro-creators or prospecting (e.g. 10000). Results include a verified author.followers, so analyze_creator is not needed just to check followers."
    • changedInput schema / properties / min_followers / description
      Previous value: -"Só criadores com pelo menos N seguidores"New value: +"Only creators with at least N followers"
    • changedInput schema / properties / period / description
      Previous value: -"Janela de tempo (padrão week)"New value: +"Time window (default week)"
    • changedInput schema / properties / platforms / description
      Previous value: -"Redes (padrão: tiktok, instagram, youtube, x)"New value: +"Networks (default: tiktok, instagram, youtube, x)"
    • changedInput schema / properties / query / description
      Previous value: -"Tema ou palavra-chave, ex.: \"marketing para dentistas\""New value: +"Topic or keyword, e.g. \"marketing for dentists\""
    • changedInput schema / properties / region / description
      Previous value: -"País, ISO-3166 (BR, US, PT...): filtra o TikTok por país e o X por idioma (BR = português). Omita para global. Use BR quando o usuário falar português e quiser o mercado brasileiro"New value: +"Country, ISO-3166 (BR, US, PT...): filters TikTok by country and X by language (BR = Portuguese). Omit for global. Use BR when the user writes in Portuguese and wants the Brazilian market"
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint the description discloses the credit cost per network (4, 8 for x, 100 for instagram_carousel) and explains the unusual mechanism behind instagram_carousel (finds authors by hashtag and reads their grid). It also reveals the ranking formula's components and the default platform fallback, all of which affect whether and how an agent should call it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and ranking rule come first, then network coverage, then defaults, then selection rules, then cost. Every clause carries information an agent needs and the parenthetical cost notes are brief rather than tangential.

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?

For an 8-parameter tool with no output schema, the description covers cost, defaults, network behavior and ranking rationale well, and it leaks a few return-shape facts (expanded_terms, author.followers). The one gap is that it never sketches the overall response structure aside from ranking, mostly because the schema descriptions absorb that burden.

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 already 100%, so most parameters are self-documenting, but the description adds cost-per-value semantics to the platforms enum (a choice the schema gives no signal about) and clarifies the default set. It also notes that results carry author.followers so analyze_creator isn't needed just to check follower counts, which is behavioral context the schema lacks.

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?

"Searches trending posts about a topic and ranks them by trend_score" names a specific verb, resource and ranking rule, and immediately follows with the definition of trend_score. It clearly distinguishes itself from siblings like trending_now, search_mentions and find_similar_posts, and enumerates exactly which networks are covered.

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?

It states the default network set when platforms is omitted and gives concrete selection rules ("Use instagram_carousel when the user asks for carousels or photos, reddit or threads for discussions or text"), which is real when-to-use guidance. It does not, however, contrast itself against sibling tools such as trending_now or search_mentions, so the agent must infer tool-level routing on its own.

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