Skip to main content
Glama

ai_search_media

Read-only

Search media by matching each query word against clip names, file paths, metadata, and saved transcripts. Returns ranked matches to help locate relevant clips in DaVinci Resolve.

Instructions

Natural-language-ish media search: matches every word against clip names, file paths, metadata and saved transcripts (from ai_transcribe_audio). Ranked by hits.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive and closed-world, so safety is covered; the description adds genuinely new behavior: which fields are searched, AND-style per-word matching, hit-count ranking, and the dependency that transcripts only exist if ai_transcribe_audio has run. It stops short of stating case sensitivity, stemming, or what happens on zero hits.

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?

A single dense sentence that front-loads the purpose and then the matching rule, with no filler. The hedge "natural-language-ish" is slightly loose, but it usefully warns the agent this is not a strict query language.

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

Completeness4/5

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

For a two-parameter read tool with annotations and an output schema, the description covers purpose, matching scope, ranking and the transcription prerequisite, which is enough to call it correctly. The one real gap is limit/pagination behavior, which is neither in the description nor the schema.

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 0%, so the description must carry the load. It does explain the query parameter meaningfully (each word is matched across several fields, results ranked by hits), but the limit parameter (default 25, max 200) is never mentioned, leaving half the parameters undocumented anywhere.

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?

It states a specific verb and resource (media search) and goes further by naming the matching mechanism: every word is matched against clip names, file paths, metadata and saved transcripts, ranked by hit count. That mechanism implicitly distinguishes it from a plain filename/path searcher like media_search, though the sibling is never named outright.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Natural-language-ish" and "matches every word" imply the multi-term/fuzzy-query case, so an agent can infer this is for semantic-ish multi-word queries rather than exact lookups. However, there is no explicit when-to-use or when-not-to-use guidance and no named alternative, leaving the choice against media_search or ai_find_best_clips to inference.

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

Deploy Server

Other Tools