Skip to main content
Glama

library_search

Search official Douyin AR asset libraries by keyword, panel, or category to find filters, makeup, face effects, stickers, sounds, and materials; merge synonym queries and paginate results.

Instructions

按关键词搜索官方素材库(美妆、滤镜、脸部变形、AI 实时变脸、贴纸、画面特效、音效、素材广场等)。除了标题匹配,词正好是面板名或子分类名时也带出那里的素材:「滤镜」→ 滤镜面板,「腮红」→ 美妆/腮红、跟脸贴纸/腮红(这些素材标题里多半没有这个词),「复古滤镜」→ 滤镜/复古;每个面板或子分类最多 300 条。结果按标题完全相同 > 标题开头 > 标题包含 > 分类匹配 > 其余排序,每条的 matched 说明命中方式(title、category:面板/分类、panel:面板)。queries 一次搜多个近义词(最多 8 个)并合并去重。按 offset / count 分页(结果缓存 10 分钟,翻页不重新请求),每条带 template_id、title、panel_key、kind、cover_ref,另返回 total、by_panel(各面板条数,可再用 panel_key 缩小)、matched_categories(展开了哪些分类)、related_categories(名字里含这个词、没有展开的分类,可用 library_list 列出)。kind:package 素材包、ai_image AI 图片、ai_makeup AI 妆容、custom_gan 自定义实时变脸、foreground_sticker 前景贴纸、face_sticker 跟脸贴纸、filter 滤镜。

返回里的图片、视频、音频给的是短引用(*_ref / *_refs,如 img:12、video:3),交给 image_view:图片直接显示,视频和音频返回原地址;引用在 MCP 服务这次运行期间有效。

Input Schema

NameRequiredDescriptionDefault
countNo每页数量,默认 20。
queryNo搜索关键词,如「芒果脸」「腮红」「复古滤镜」。与 queries 二选一。
offsetNo分页起点,取上一页的 next_offset;默认 0。
queriesNo一次搜多个词并合并,如 ["冷艳", "猫眼", "烟熏", "风格妆"]。与 query 二选一。
panel_keyNo只搜这个面板(library_list 不传 panel_key 时返回的 panel_key,如 aigc_material)。
instance_idNo官方 list_instances 返回的 instance_id,与 project_path 二选一。
project_pathNo目标工程的绝对路径。与 instance_id 二选一;只开了一个工程窗口时都可省略。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and delivers unusual detail: per-panel/per-subcategory result caps (最多 300 条), a fully specified ranking order (exact title > prefix > contains > category match > rest), the meaning of the matched field, a 10-minute result cache that makes paging free, and the lifetime of returned *_ref handles (valid for this MCP run). This is exactly the operational context an agent cannot infer from the schema.

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 and matching behavior are front-loaded, then ranking, pagination, and return fields follow in a logical order. It is dense but long, and the kind enum listing and cap repetition add bulk that could be tightened without losing information.

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?

For a 7-parameter search tool with no annotations and no output schema, the description still documents the return shape (template_id, title, panel_key, kind, cover_ref, total, by_panel, matched_categories, related_categories), the full kind enumeration, and how to consume *_ref values via image_view. Nothing an agent needs in order to call it correctly is missing.

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 adds real meaning: it links queries to synonym-batch usage with a concrete example, ties offset/count to the cache so paging does not re-request, and connects panel_key to the by_panel return field for narrowing. It does not clarify the instance_id/project_path either-or beyond what the schema already says.

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 states a specific verb+resource (按关键词搜索官方素材库) and enumerates the covered domains (美妆、滤镜、贴纸、音效等), so an agent can immediately tell this is the keyword-search path over the material library. It also names the sibling boundary — library_list for enumerating categories, image_view for resolving refs — which most search tools omit.

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 concrete usage context: semantic/panel-name matching with worked examples (「滤镜」→滤镜面板, 「腮红」→美妆/腮红), queries for up to 8 synonyms, and panel_key to narrow from by_panel. It does not explicitly state when to prefer library_list or library_images over searching, but the routing to library_list for related_categories implies the boundary.

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