Skip to main content
Glama

media_search

Read-only

Search spoken words in indexed source recordings to find source-time ranges and possible alternative takes, then use preview hints with source_preview to compare delivery before editing.

Instructions

Search words spoken in an indexed source recording and find source-time ranges plus possible alternative attempts. This is lexical transcript search, not semantic image search or automatic best-take selection. Use returned preview hints with source_preview to compare actual delivery before editing.

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": {
      "projectDir": "<projectDir>",
      "indexId": "<indexId>",
      "query": "<query>"
    },
    "name": "media_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
offsetNo
indexIdYes
projectDirYesAbsolute path of the local video project directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is settled without the description. The text adds genuine value by disclosing the result shape: source-time ranges plus possible alternative attempts and preview hints. It says nothing about pagination behavior, empty-result handling, or whether the index must already be built (media_index / media_index_get exist as siblings).

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?

Three tight sentences, front-loaded with the core action, then the disambiguation, then the follow-up workflow. Every sentence carries distinct information with no restatement of the tool name. Slightly dense phrasing ("possible alternative attempts") but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter read tool with no output schema and thin schema descriptions, the description covers what comes back and how to use it next, which is the important part. It leaves the indexId prerequisite and the limit/offset pagination model entirely unexplained, so an agent must guess how to page through a large result set or obtain a valid index.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20%, with just projectDir documented, so the description carries most of the burden. "Search words spoken" does clarify that query is a lexical phrase against transcript text rather than an image or take descriptor, which is useful. But indexId, limit and offset get no explanation anywhere, and the maximum of 50 results is invisible to the reader.

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?

"Search words spoken in an indexed source recording" names a specific verb and resource, and the description states the output (source-time ranges plus alternative attempts). It also rules out semantic image search and best-take selection, so the agent knows what class of operation this is. It never mentions the sibling transcript_search, which is the closest analogue, so full sibling differentiation is missing.

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 gives an explicit downstream step: use returned preview hints with source_preview to compare actual delivery before editing, which is real routing guidance. It also excludes two tempting misuses (semantic image search, automatic best-take selection). The gap is that it never says when to choose this over transcript_search, an adjacent sibling that an agent will likely confuse it with.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.