Skip to main content
Glama

Search library, catalog and providers

search_assets
Read-only

Find video, image, or audio assets in your library, the offline CC0 catalog, or enabled providers and return IDs for adding selected assets.

Instructions

Find assets. source "library" = your own uploads (name and tags; empty q lists all); omitted or "catalog" = the Reelsaw catalog (CC0, works offline); or a provider an admin enabled. Returns { provider, items: [{ provider, externalId, name, kind, license, durationSec }], nextCursor }. Adds nothing: a catalog / provider hit's provider + externalId go to add_asset.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoWhat to look for, e.g. "whoosh", "arrow", "city at night"; empty lists everything in the source
kindNoOnly this kind of result
limitNoResults per page (1-60, default 24)
cursorNonextCursor from the previous page; omit for the first page
sourceNolibrary, catalog (default), pexels, pixabay, freesound, iconify, openverse, giphy or klipy
deletedNolibrary only: list your deleted items instead (their ids go to restore_asset)
licenseNofreesound only: cc0 (default) or by (CC0 and CC-BY, attribution is stored)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.51.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changedv0.26.3
    • addedInput schema / properties / deleted
      Added value: +{
      +  "description": "library only: list your deleted items instead (their ids go to restore_asset)",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / removed
      Removed value: -{
      -  "description": "library only: list the items removed in the last 30 days instead (their ids go to restore_asset)",
      -  "type": "boolean"
      -}
  3. Addedv0.19.1

TDQS

A4.2/5.0
Behavior4/5

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

readOnlyHint=true is consistent with a pure lookup, and the description adds behavior the annotation does not: the catalog works offline, results are paginated via nextCursor, and the tool is strictly non-mutating with add_asset as the follow-on. It even spells out the return envelope, which matters because no output schema exists. It does not cover provider-side failure modes or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the verb and followed by source semantics, return shape, and the hand-off to add_asset. Every clause carries information an agent needs; nothing is padding, though the telegraphic punctuation takes a careful read.

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?

Seven optional parameters, two enums, and no output schema, so the description must carry the return contract, and it does: the { provider, items[], nextCursor } shape plus the add_asset hand-off. Combined with 100% schema coverage, an agent has everything needed to call and chain this tool correctly.

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, but the description earns above it by explaining what the source enum values actually mean and that library matches on name and tags while an empty q lists everything. The deleted flag's restore_asset follow-up is left to the schema description rather than reinforced here.

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?

"Find assets" is a clear verb+resource, and the description immediately enumerates the three searchable sources (own library, Reelsaw catalog, admin-enabled provider), which makes the tool's scope concrete. It stops short of naming any sibling search tool as the alternative, so an agent must infer where search_assets ends and something like search_clips begins.

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 explicit source-selection guidance: library for own uploads (matched on name and tags, empty q lists all), omitted/catalog for the CC0 catalog, or a provider an admin enabled. It also closes the loop by stating the tool adds nothing and that a hit's provider + externalId must be passed to add_asset. The only gap is the absence of any exclusion telling the agent when NOT to search here.

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