Skip to main content
Glama

Find moments

find_moments
Idempotent

Use this when the user wants to search a long video for a topic by meaning before clipping: "where do I talk about the new game", "when did chat go wild". Returns job_id; once job_status says done, get_moments gives time ranges with a quote. Not for: cutting clips straight away (find_clips, clip_range) or finding a video by name (search). Spends Horizon Units, as much as reading the whole video: call estimate_hu first, show the number and pass the approved amount as max_hu (a failed search gives it back; a video analysed once is not charged again).

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": {
      "project_id": "<project_id>",
      "topic": "<topic>",
      "max_hu": "<max_hu>"
    },
    "name": "find_moments"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many matches to return, 1 to 10.
topicYesWhat to look for, in plain words, e.g. "the new game" or "funny bits".
max_huYesHorizon Units the user approved, from estimate_hu; a higher cost is refused.
project_idYesId of the video, from list_projects.
max_secondsNoLongest match length in seconds.
min_secondsNoShortest match length in seconds.
request_keyNoOptional unique string; repeating it returns the same job.

Output Schema

NameRequiredDescriptionDefault
job_idYes
statusYes
status_urlYes
reserved_huYes
results_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / request_key / default
      Removed value: -""
  2. Changed15 schema fields changed
    • addedInput schema / properties / count / description
      Added value: +"How many matches to return, 1 to 10."
    • removedInput schema / properties / count / title
      Removed value: -"Count"
    • addedInput schema / properties / max_hu / description
      Added value: +"Horizon Units the user approved, from estimate_hu; a higher cost is refused."
    • removedInput schema / properties / max_hu / title
      Removed value: -"Max Hu"
    • addedInput schema / properties / max_seconds / description
      Added value: +"Longest match length in seconds."
    • removedInput schema / properties / max_seconds / title
      Removed value: -"Max Seconds"
    • addedInput schema / properties / min_seconds / description
      Added value: +"Shortest match length in seconds."
    • removedInput schema / properties / min_seconds / title
      Removed value: -"Min Seconds"
    • addedInput schema / properties / project_id / description
      Added value: +"Id of the video, from list_projects."
    • removedInput schema / properties / project_id / title
      Removed value: -"Project Id"
    • addedInput schema / properties / request_key / description
      Added value: +"Optional unique string; repeating it returns the same job."
    • removedInput schema / properties / request_key / title
      Removed value: -"Request Key"
    • addedInput schema / properties / topic / description
      Added value: +"What to look for, in plain words, e.g. \"the new game\" or \"funny bits\"."
    • removedInput schema / properties / topic / title
      Removed value: -"Topic"
    • removedInput schema / title
      Removed value: -"find_momentsArguments"
  3. Changed2 schema fields changed
    • addedInput schema / properties / request_key / default
      Added value: +""
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "topic",
      -  "max_hu",
      -  "request_key"
      -]New value: +[
      +  "project_id",
      +  "topic",
      +  "max_hu"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare a non-read-only, idempotent, non-destructive tool but say nothing about cost. The description fills exactly that gap: it spends Horizon Units roughly equal to reading the whole video, a failed search is refunded, an already-analysed video is not recharged, and an over-budget max_hu is refused. It also discloses the asynchronous job model, which annotations cannot express.

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 condition and examples, then the exclusions, then the cost warning — a sensible priority order with no filler sentences. It is dense and multi-clause, but each clause carries operational information an agent needs before calling.

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, asynchronous tool with 7 parameters this covers everything an agent must know: when to use it, what it costs, how approval works, and that results arrive via get_moments rather than the immediate response. Return-value detail is correctly left to the existing output schema.

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 baseline is 3, but the description adds cross-tool meaning the schema cannot: max_hu must be the amount the user approved from estimate_hu and is a hard ceiling. The request_key idempotency link is also reinforced ('repeating it returns the same job'), though count/min_seconds/max_seconds are left entirely to the schema.

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 (semantic search over a long video for a topic) and grounds it with two concrete example queries. It also explicitly separates itself from find_clips, clip_range, and search, so an agent can pick it without opening a sibling 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?

Gives an explicit 'use this when' condition with example utterances, an explicit 'not for' list naming the correct alternatives, and the follow-on workflow (job_id → job_status done → get_moments). The prerequisite of calling estimate_hu first is stated directly.

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