Skip to main content
Glama

works_search

Search homepage works by name across all categories, merging and deduplicating results that the recommendation feed alone misses. Supports multi-keyword queries, sorting, and pagination with cached pages.

Instructions

按作品名搜索首页作品(与首页搜索框同一个接口)。不给 category_id 时搜全部分类并合并去重:「推荐」翻到底只有约 300 条,「美化」「友友天地」等分类里还有它没有的作品。合并顺序是先「推荐」里的(按 sort),再按分类顺序追加只在其它分类出现的;每个分类最多 300 条。每条带 found_in(出现在哪些分类),另返回 total、by_category(各分类条数)。queries 一次搜多个词(最多 8 个)并合并,每条带 matched_queries。按 offset / count 分页,结果缓存 10 分钟,翻页不重新请求。某个分类翻页时服务端一直给同一页,会列在 incomplete 里。其余字段同 works_list。按特效 ID 查用 works_by_effect。

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

Input Schema

NameRequiredDescriptionDefault
sortNo排序:suggest 推荐(默认)、latest 最新、effect_usage 特效使用量、project_usage 工程使用量。
countNo每页数量,默认 20。
queryNo作品名关键词,如「合掌」「转场」「换装」。与 queries 二选一。
offsetNo分页起点,取上一页的 next_offset;默认 0。
queriesNo一次搜多个词并合并,如 ["头套", "头饰"]。与 query 二选一。
category_idNo只搜这个分类(works_list 返回的 categories 里的分类 ID);省略时搜全部分类。
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 behavioral burden and does so unusually well: it discloses the ~300-item cap per category, the merge ordering, 10-minute result caching so paging doesn't re-request, the server-side stuck-page failure surfaced as `incomplete`, and the lifetime of short refs (valid only for this MCP service run) plus how to resolve them via image_view. These are exactly the non-obvious traits an agent needs before calling.

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 dense but front-loaded: purpose first, then the no-category behavior, then pagination/caching caveats, then sibling routing, then ref handling. Nearly every clause carries a distinct operational fact, though the merge-order and 300-cap detail could be tightened without losing meaning.

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 an 8-parameter, annotation-free search tool with no output schema, the description compensates by naming the returned fields (found_in, total, by_category, matched_queries, incomplete, *_ref refs) and the pagination contract. Nothing an agent needs in order to call it correctly or interpret its results 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 schema already documents each parameter; the description still adds real meaning beyond it, notably the consequence of omitting category_id (search-all with dedupe), the 8-term cap on queries and the matched_queries annotation returned per item, and that offset/count paging is served from cache. Only instance_id and project_path are left entirely to the schema.

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 opening clause states a specific verb and resource ("按作品名搜索首页作品") and pins the exact backend semantics ("与首页搜索框同一个接口"). It also differentiates from siblings by naming works_by_effect for effect-ID lookups and by deferring field semantics to works_list, so an agent can choose among the three without opening any 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?

It gives explicit conditions: omit category_id to search all categories with merge/dedupe, use queries for up to 8 terms, and use works_by_effect when searching by effect ID. What it doesn't spell out is when to prefer works_search over works_list or library_search for a plain browse, leaving that routing to inference from "其余字段同 works_list".

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