Skip to main content
Glama

CULT+MATH Decision Briefs

What are people saying under this video?

run_comment_themes
Read-onlyIdempotent

Use when the user wants to know what viewers raise under a trailer, launch video, ad or review on YouTube, for example whether they talk about price, a feature or a complaint. Returns, for up to eight themes named in advance, the count and share of up to 400 top comments per video (up to five videos) that mention each, with how many comments were read. No comment text. 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 moment; compare: videos (up to five); segment: themes. 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.

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": {
      "videos": "<videos>",
      "themes": "<themes>"
    },
    "name": "run_comment_themes"
  }
}

Input Schema

NameRequiredDescriptionDefault
themesYes1-8 words or short phrases to count, comma-separated, e.g. "disc,price,story".
videosYes1-5 YouTube video IDs (the 11 characters after v= in the link), comma-separated.

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. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "available": {
      +      "description": "false when the run is switched off; then nothing can be charged.",
      +      "type": "boolean"
      +    },
      +    "error": {
      +      "description": "Why the inputs were refused, with the expected usage. Nothing is charged.",
      +      "type": "string"
      +    },
      +    "instructions": {
      +      "description": "How to pay over MPP and x402, and how to ask for publication.",
      +      "type": "object"
      +    },
      +    "limits": {
      +      "description": "What the run cannot tell you, stated before you pay."
      +    },
      +    "next_step": {
      +      "description": "What to tell the user before paying.",
      +      "type": "string"
      +    },
      +    "note": {
      +      "description": "Why the run is unavailable, when it is.",
      +      "type": "string"
      +    },
      +    "payment_url": {
      +      "description": "POST here to run and pay. Not a checkout page.",
      +      "type": "string"
      +    },
      +    "price_usd": {
      +      "description": "Price over MPP (Stripe shared payment token).",
      +      "type": "number"
      +    },
      +    "recipe": {
      +      "description": "The run, e.g. \"filing-trend\".",
      +      "type": "string"
      +    },
      +    "what_you_get": {
      +      "description": "What the paid result will contain for these inputs.",
      +      "type": "string"
      +    },
      +    "x402_price_usd": {
      +      "description": "Price over x402 (USDC on Base), when offered.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Discloses behavior the annotations cannot: calling the tool returns a quote (what is measured, the price, a payment_url), not the result, and the run only executes when you POST to payment_url. It also covers the failure path (a run failing its controls refuses there, nothing charged), the billing models ($0.05 x402/USDC on Base, $0.50 MPP via Stripe token), and that no comment text is returned. This is consistent with readOnlyHint=true and idempotentHint=true, since the tool call itself has no side effects.

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 trigger and the returned measure before moving to the payment mechanics, and nearly every clause carries new information. It is dense and heavily punctuated with semicolons and parentheticals, which makes it harder to scan than it needs to be for a two-parameter tool.

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?

Covers the trigger, the measure, the sampling scope, the no-text constraint, the run metadata (run id, date, citation line), the quote-then-pay flow, and the failure/refund condition. With an output schema present, return values need no further explanation; nothing an agent needs to decide to call this and what to expect afterward 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 both parameters are already documented with formats and examples (comma-separated theme phrases, 11-character video IDs). The description still adds meaning the schema lacks: each theme is 'named in advance', and the per-video sample is capped at 400 top comments across up to five videos. That extra scope information nudges it above the baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: it counts how many of the top comments under a YouTube video mention each of up to eight named themes, with count and share per video. The domain (trailer, launch video, ad, review on YouTube) and the output shape (themes, counts, shares, comments read, no comment text) are concrete. It does not name a sibling tool to differentiate itself from, so it lands at 4 rather than 5.

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?

Opens with an explicit trigger ('Use when the user wants to know what viewers raise under a trailer, launch video, ad or review'), and gives examples of the kind of answer it produces (price, a feature, a complaint). It also explains how to vary the inputs (over time / compare / segment) to narrow the result. It stops short of stating when NOT to use it or naming an alternative tool for adjacent questions.

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