Skip to main content
Glama

Find video moments

search_video_moments
Read-onlyIdempotent

Find visual or audible moments in the user's indexed Library footage from a natural-language query. Prefer this tool first when locating footage. mediaId null searches the whole Library; a video's Asset ID from search_assets or its Library id searches that video. startSeconds and endSeconds limit the search to a range of that video; null searches all of it. Each moment is one indexed segment: its startSeconds and endSeconds are segment boundaries, not the times something appears or leaves. Segments are 2 seconds long in videos up to a minute and up to 6 seconds in longer ones. When a moment is too coarse for the question, call index_video on that range, a few seconds wider, wait for its job, then search the range again. Scores are similarities, not probabilities: compare them only within one search, and a weak top result is not proof of a match, so say when footage is inconclusive. coverage counts videos. A video still being indexed is searched over the part indexed so far, and one whose index stopped over the part it kept: progress lists each such video with indexedSeconds of durationSeconds, and indexing true while its index runs; other pending and unavailable videos were not searched. Searching a range of one video still being indexed has that range indexed next: search it again in a minute. When the one video searched cannot be searched yet, indexing is its index state: wait with read_video_intelligence while it is queued, submitting or processing; call index_video when it is not_indexed. To see a moment, call read_asset with its mediaId and its startSeconds and endSeconds: a contact sheet of that range, without adding the video to a project. Add a result with add_from_library, then use its source range on the timeline. One search uses no extra credits: it is part of the message. It does not index videos or answer detailed questions: analyze_video answers those for a returned range.

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>",
      "mediaId": "<mediaId>",
      "limit": "<limit>",
      "startSeconds": "<startSeconds>",
      "endSeconds": "<endSeconds>",
      "projectId": "<projectId>"
    },
    "name": "search_video_moments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes
queryYesWhat to find, 1–2000 characters.
mediaIdYes
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.
endSecondsYesSource seconds where the searched range ends; needs mediaId. null with startSeconds null searches the whole video.
startSecondsYesSource seconds where the searched range starts; needs mediaId. null with endSeconds null searches the whole video.

Output Schema

NameRequiredDescriptionDefault
momentsYes
coverageYes
indexingYes
progressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / progress
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "durationSeconds": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "indexedSeconds": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "indexing": {
      +        "type": "boolean"
      +      },
      +      "mediaId": {
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mediaId",
      +      "indexedSeconds",
      +      "durationSeconds",
      +      "indexing"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / moments / items / properties / whole
      Added value: +{
      +  "const": true,
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / properties / indexing / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "canWait": {
      -        "type": "boolean"
      -      },
      -      "endSeconds": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "errorCode": {
      -        "anyOf": [
      -          {
      -            "enum": [
      -              "SERVICE_UNAVAILABLE",
      -              "VIDEO_INTELLIGENCE_UNSUPPORTED",
      -              "QUOTA_EXCEEDED",
      -              "PAYMENT_REQUIRED"
      -            ],
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "jobId": {
      -        "anyOf": [
      -          {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "kind": {
      -        "enum": [
      -          "index",
      -          "analysis"
      -        ],
      -        "type": "string"
      -      },
      -      "mediaId": {
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "note": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "pollAfterSeconds": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "reason": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "result": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "startSeconds": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "state": {
      -        "enum": [
      -          "waiting_for_upload",
      -          "not_indexed",
      -          "disabled",
      -          "upgrade_required",
      -          "quota_exceeded",
      -          "unsupported",
      -          "queued",
      -          "submitting",
      -          "processing",
      -          "ready",
      -          "failed"
      -        ],
      -        "type": "string"
      -      },
      -      "updatedAt": {
      -        "anyOf": [
      -          {
      -            "format": "date-time",
      -            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "mediaId",
      -      "jobId",
      -      "kind",
      -      "state",
      -      "updatedAt",
      -      "result",
      -      "errorCode",
      -      "startSeconds",
      -      "endSeconds",
      -      "canWait",
      -      "pollAfterSeconds",
      -      "reason",
      -      "note"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "canWait": {
      +        "type": "boolean"
      +      },
      +      "endSeconds": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "errorCode": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "SERVICE_UNAVAILABLE",
      +              "VIDEO_INTELLIGENCE_UNSUPPORTED",
      +              "QUOTA_EXCEEDED",
      +              "PAYMENT_REQUIRED"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "jobId": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "kind": {
      +        "enum": [
      +          "index",
      +          "analysis"
      +        ],
      +        "type": "string"
      +      },
      +      "mediaId": {
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "note": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "pollAfterSeconds": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "reason": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "result": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "startSeconds": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "state": {
      +        "enum": [
      +          "waiting_for_upload",
      +          "not_indexed",
      +          "disabled",
      +          "upgrade_required",
      +          "quota_exceeded",
      +          "unsupported",
      +          "queued",
      +          "submitting",
      +          "processing",
      +          "ready",
      +          "failed"
      +        ],
      +        "type": "string"
      +      },
      +      "updatedAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "mediaId",
      +      "jobId",
      +      "kind",
      +      "state",
      +      "updatedAt",
      +      "result",
      +      "errorCode",
      +      "startSeconds",
      +      "endSeconds",
      +      "canWait",
      +      "pollAfterSeconds",
      +      "reason",
      +      "note"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed2 schema fields changed
    • addedInput schema / properties / projectId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs."
      +}
    • changedInput schema / required
      Previous value: -[
      -  "query",
      -  "mediaId",
      -  "limit",
      -  "startSeconds",
      -  "endSeconds"
      -]New value: +[
      +  "query",
      +  "mediaId",
      +  "limit",
      +  "startSeconds",
      +  "endSeconds",
      +  "projectId"
      +]
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the read-only and idempotent annotations, the description discloses segment boundaries, segment lengths, similarity-score interpretation, coverage counting, partial indexing behavior, pending/unavailable videos, and credit cost. This is unusually rich behavioral context for a search tool.

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?

The purpose and preferred-use guidance are front-loaded, and most sentences carry useful operational detail. The description is long and delivered as a single dense paragraph, so edge-case behavior could be organized more clearly, but the content is largely justified by the tool's complexity.

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?

Given that an output schema exists and annotations cover safety, the description supplies the remaining decision-critical context: scope, range behavior, partial indexing, score interpretation, follow-up tools, and cost. It is complete enough for an agent to call this tool correctly and interpret the result.

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?

The description adds real meaning for mediaId, startSeconds, and endSeconds, including whole-Library versus single-video scope, range constraints, and the distinction between segment boundaries and actual appearance times. The schema coverage is 67%, and limit is still undocumented, while projectId is mostly left 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?

The description states a specific verb and resource: finding visual or audible moments in indexed Library footage from a natural-language query. It also distinguishes this from adjacent tools such as analyze_video, index_video, read_asset, and add_from_library.

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 explicitly says to prefer this tool first for locating footage, explains when to use mediaId null versus a video ID, and gives conditions for using index_video, read_video_intelligence, read_asset, add_from_library, and analyze_video. These are concrete when-to-use and when-to-use-an-alternative rules.

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.