Skip to main content
Glama

Search media library

media_library_search
Read-onlyIdempotent

Find moments across the library by speech, on-screen text, book-page text or visual similarity (multilingual CLIP). OCR includes book pages; book_page searches only book text and observed printed page labels. Returns item_id, start/end seconds, matched text, page_index (zero-based observation, not printed folio), printed_page and keyframe paths when available. Use for production planning and to pick clip ranges. Respect reuse_policy: "reusable" footage (own/licensed) may be cut into new work; "reference_only" third-party media is for analysis, structure and style reference only, never copied into an output.

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": "media_library_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNoChoose which indexes to search: speech, OCR, visuals or book-page text.
limitNoMaximum number of entries or matches to return.
queryYesSearch text for matching media library entries or moments.
reuse_policyNoFilter by the library’s recorded footage reuse policy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real behavioral context beyond them: the returned fields, the caveat that page_index is a zero-based observation rather than a printed folio, that keyframe paths are conditional ('when available'), and the licensing constraint that reference_only media must never be copied into output.

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?

Purpose is front-loaded in the first clause, followed by taxonomy clarification, return contract, and licensing rule — a sensible order with little filler. Slightly dense sentences compress several distinct facts, but nothing is redundant.

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?

With no output schema, the description carries the return-value burden and does so (item_id, start/end, matched text, page_index, printed_page, keyframe paths). Minor gaps remain: result ordering/ranking across multiple kinds and how the four indexes are combined are not stated.

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 baseline is 3. The description goes beyond the schema by disambiguating the easily-confused ocr vs book_page kinds and by expanding the meaning of reuse_policy into an actual usage rule rather than just 'filter by policy'.

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 ('Find moments across the library') and enumerates the four search modalities, including the non-obvious distinction that OCR includes book pages while book_page restricts to book text and printed page labels. An agent can tell this apart from listing or clip-range siblings without opening another schema.

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?

Gives concrete usage context ('production planning', 'pick clip ranges') and explains the reuse_policy decision rule for downstream use, but names no alternative sibling tools or explicit when-not-to-use conditions. Clear context, no exclusions.

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