Skip to main content
Glama

CULT+MATH Decision Briefs

Which topics on this subject are getting views on YouTube?

run_topic_views
Read-onlyIdempotent

Use when the user is a creator, creator manager or brand team planning content on a subject and asks which angle gets watched: "which GTA 6 topics are pulling views right now?", "do trailer videos beat leak videos?", "who owns the views on this?". Returns YouTube's most-viewed videos on the subject from the window, split by the title topics you name: videos, median views and median views per day for each, Shorts against long-form, the top channels' share of views and the top 10 videos. Public counts only; results cannot be published. Refuses before you are charged if the search drifts off the subject. Every result carries a run id, a date and a citation line. Calling this tool returns a quote, not the result: what the run measures, its price and a payment_url. The run happens only when you POST to payment_url, and a run that fails its controls refuses there with nothing charged. Dimensions (vary these inputs to cut the answer; each call is its own run): over time: one window of days; re-run for a later window; segment: topics; Shorts against long-form. Price: $0.05 per run over x402 (USDC on Base, no account needed), or $0.50 over MPP (a Stripe shared payment token); charged only when the run comes back sound. To compare named channels rather than topics, use run_channel_benchmark; for what viewers say under one video, use run_comment_themes.

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>",
      "topics": "<topics>"
    },
    "name": "run_topic_views"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays back from today. Default 30.
queryYesThe subject, as people search it, e.g. "GTA 6".
topicsYes2-4 title words or short phrases to split the videos by, e.g. ["trailer","leak"].

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the run is unavailable, when it is.
errorNoWhy the inputs were refused, with the expected usage. Nothing is charged.
limitsNoWhat the run cannot tell you, stated before you pay.
recipeNoThe run, e.g. "filing-trend".
availableNofalse when the run is switched off; then nothing can be charged.
next_stepNoWhat to tell the user before paying.
price_usdNoPrice over MPP (Stripe shared payment token).
payment_urlNoPOST here to run and pay. Not a checkout page.
instructionsNoHow to pay over MPP and x402, and how to ask for publication.
what_you_getNoWhat the paid result will contain for these inputs.
x402_price_usdNoPrice over x402 (USDC on Base), when offered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent safety; the description adds everything that actually matters operationally: the two-phase quote-then-pay flow (the call returns a price and payment_url, not results), the $0.05 x402 vs $0.50 MPP pricing, 'charged only when the run comes back sound', refusal on off-subject drift with nothing charged, public-counts-only with a publication restriction, and the run id/date/citation line on every result. This is substantial disclosure well beyond the annotation set.

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

Conciseness3/5

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

It is a single dense paragraph of roughly 250 words with no structural breaks; the output enumeration (videos, medians, Shorts vs long-form, top channels, top 10) partly duplicates what the output schema already declares. The pricing/payment mechanics, which are the highest-stakes information, land at the back rather than being front-loaded, though almost every sentence does carry real content.

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 paid, open-world, quote-then-execute tool the description covers the full lifecycle: when it applies, what it measures, how it is priced, when it refuses and that a refusal costs nothing, what each result carries, and which siblings to use instead. With an output schema present it need not spell out return shapes, so nothing an agent needs before calling is missing.

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 the schema already carries defaults, min/max and examples for query, topics and days. The description nonetheless adds analytic meaning — that 'days' is the time window, 'topics' is the segmenting dimension, and that each call is its own billed run — which reframes the parameters as levers for cutting the answer rather than raw inputs.

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?

The description names a specific verb and resource — returns YouTube's most-viewed videos on a subject, split by named title topics, with median views, median views/day, Shorts vs long-form, top channels' share and top 10 videos. The 'Returns ... split by the title topics you name' clause is concrete enough that an agent can separate it from run_channel_benchmark and run_comment_themes without opening either schema.

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?

It states an explicit use condition (creator/creator manager/brand team planning content and asking which angle gets watched) with three sample user phrasings, plus explicit routing away to run_channel_benchmark for named channels and run_comment_themes for comment analysis. It also tells the agent how to vary inputs across calls ('over time: one window of days; re-run for a later window; segment: topics'), which is genuine invocation guidance.

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