Skip to main content
Glama

Search assets

search_assets
Read-onlyIdempotent

Search uploaded media by id, name, kind, mime type or transcript. Every word of the query must appear. An empty query lists every uploaded asset, one line each, so one call shows the whole footage. When a project has more files than one answer holds, the listing says the offset to call again with for the rest. Each line includes truncated per-field metadata, hasAudio for videos and sounds, and transcript status (none, pending, processing, completed, error) with segmentCount when completed. Nothing reads what a file shows or says on its own: read_asset draws its contact sheet, and transcribe_asset, detect_scenes, detect_beats and search_video_moments read its content when the edit needs it. Matching a query uses transcript text inside the tool; the model does not receive that text. If transcript.status is completed, the asset already has a transcript; do not call transcribe_asset again. Use read_asset with id to read one asset whole: pixels when available (the image, or a timestamped contact sheet for video) and metadata. Call read_analysis_range to read transcript rows, beat times or track frames. Uploads still in progress are listed too, from the moment the user starts them on any device: preparing is set while an asset uploads or encodes (stage uploading, processing or failed). It is not usable yet; call wait_for_asset with the ids of every asset you need, in one call, before placing or analyzing them. Does not list TypeScript components; use read_component. Does not list the published elements library; use search_elements. Video assets include libraryId, the id of their Library copy, once their cloud upload has started; null means the video is only on this device so far. The Video Intelligence tools (search_video_moments, analyze_video, index_video, read_video_intelligence) take a video's Asset ID or its libraryId as mediaId. Lists only this project's media; the user's other uploads are in their Library: use search_library.

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>",
      "offset": "<offset>",
      "limit": "<limit>",
      "projectId": "<projectId>"
    },
    "name": "search_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYesMost files to list, 1 to 500. null lists as many as fit one answer and says the offset of the rest.
queryYesEmpty lists every asset.
offsetYesFiles to skip: the offset a listing says to call again with, for the next files. null starts at the first.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 500,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Most files to list, 1 to 500. null lists as many as fit one answer and says the offset of the rest."
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Files to skip: the offset a listing says to call again with, for the next files. null starts at the first."
      +}
    • changedInput schema / required
      Previous value: -[
      -  "query",
      -  "projectId"
      -]New value: +[
      +  "query",
      +  "offset",
      +  "limit",
      +  "projectId"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint annotations, the description discloses pagination behavior, one-line-per-asset output, truncated metadata fields, hasAudio and transcript status values, the fact that transcript text is matched internally but not returned, and how in-progress uploads appear. These are meaningful behavioral details an agent would not otherwise know.

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 description is long but front-loaded with the core purpose and packed with useful routing detail. Some material is repeated or could be more tightly structured, but nearly every sentence earns its place for a search tool with no output schema.

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?

Because there is no output schema, the description carries the full burden of explaining returns. It does so: line-per-asset output, per-field metadata, hasAudio, transcript status and segmentCount, pagination offset, libraryId semantics, and in-progress upload states are all described.

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. The description still adds meaning for the query parameter by stating that every word must appear and that an empty query lists every asset; for offset and limit it largely echoes what the schema already documents.

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 opens with a specific verb and resource: 'Search uploaded media by id, name, kind, mime type or transcript.' It also distinguishes this tool from nearby siblings by explicitly naming read_asset, search_library, search_elements and read_component, so an agent can identify its scope without opening the 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?

It gives explicit routing guidance: use read_asset to read one asset whole, read_analysis_range for transcript rows or track data, search_library for the user's other uploads, search_elements for the published elements library and read_component for TypeScript components. It also states when not to call transcribe_asset again and when to call wait_for_asset for in-progress uploads.

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.