Skip to main content
Glama
fgui-agent-bridge

fgui-agent-bridge

by Wilson520403

fgui_find_unused

Find resources that have no references in a FairyGUI project, returning package, path, URL, size, and image dimensions so you can identify unused assets before cleanup.

Instructions

找出工程内没有任何引用位置的资源(只读,0.8.19+)。

返回每个未引用资源的包、路径、URL、文件大小,图片还附带尺寸。判断口径是 「当前工程内零引用」:导出资源可能被运行时按 URL 使用,默认仍会列出并标记 exported,删改前请确认;skip_exported=True 可排除它们。

packages 传包名或包 ID,省略时扫描全工程;types 可按 image / font / sound / movieclip / component 过滤;max_items 限制返回明细条数,unusedCount 仍是真实总数。

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

Input Schema

NameRequiredDescriptionDefault
typesNo
packagesNo
max_itemsNo
skip_exportedNo
include_branchesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.25

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it delivers: it declares the tool read-only, states the minimum version (0.8.19+), and explains that the judgment is limited to in-project references with runtime URL usage excluded. The one behavioral gap is include_branches, which is not mentioned anywhere, so branch-scoped behavior is invisible.

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?

It is front-loaded with the purpose and read-only/version status, then the interpretation caveat, then parameter notes, so each block serves a purpose. The middle caveat sentence is slightly dense but not padded; the only dead weight is that include_branches never appears despite being in the schema.

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?

An output schema exists, so the description did not need to enumerate return fields, yet listing package/path/URL/size and image dimensions is harmless reinforcement. For a read-only, zero-required-parameter query tool this is nearly complete, with the include_branches parameter the sole unexplained element.

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 description coverage is 0%, so the description must compensate, and it does for four of five parameters: packages (package name or ID, omitted = whole project), types (with the concrete enum values image/font/sound/movieclip/component, which the schema itself lacks), max_items (with the important note that unusedCount remains the true total), and skip_exported. Only include_branches is left undocumented.

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?

The description gives a specific verb and resource ('找出工程内没有任何引用位置的资源') and sharpens the definition with the 'zero references within the current project' criterion, which is genuinely more precise than the tool name alone. It never mentions related siblings such as fgui_query_references or fgui_find_duplicate, so an agent still has to infer how this differs from reference- or duplicate-analysis tools.

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 clear situational guidance: exported resources may be loaded at runtime by URL, they are still listed and marked 'exported' by default, and the user should confirm before deleting or modifying. It also states that skip_exported=True excludes them, so the agent knows the safe path. It stops short of naming an explicit alternative tool or a when-not-to-use condition.

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