Skip to main content
Glama
w48930429

FairyGUI Agent Bridge

by w48930429

fgui_validate_component

Validates a FairyGUI component against project standards by checking XML formatting, required attributes, naming conventions, and resource references. Returns a clear validation result.

Instructions

验证组件规范

检查组件是否符合 FairyGUI 规范和项目最佳实践:

  • XML 格式正确性

  • 必要属性完整性

  • 命名规范

  • 资源引用有效性

Args: package_name: 包名称 component_name: 组件名称

Returns: 验证结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
package_nameYes
component_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.3

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It communicates that this is an inspection-style operation ('checks') and lists the specific validation categories, plus a return value. However, it does not explicitly state that the operation is read-only, how failures are reported, or whether it returns a pass/fail status versus a list of issues.

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 compact and well-organized: a clear summary, a scannable bullet list of validation criteria, and an Args/Returns section. There is slight redundancy between the title line and the opening sentence, but overall every section earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter validation tool, the description is nearly sufficient: it states what is checked and that a result is returned, and an output schema exists to cover return details. However, it omits any usage context relative to fgui_verify_document and gives no indication of what the caller should do with the result, leaving moderate ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/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, but it merely restates the parameter names as 'package name' and 'component name' in Chinese. It adds no format guidance, constraints, examples, or details about how the names must be expressed, providing no value beyond the schema property titles.

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 clearly identifies the action ('validate/check component') and resource ('component'), and enumerates four concrete validation dimensions: XML correctness, required attributes, naming conventions, and resource references. It does not explicitly distinguish itself from the sibling fgui_verify_document, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is used to validate a component, but it gives no guidance on when to run it, what conditions make it appropriate, or how it relates to alternatives like fgui_verify_document. No exclusions or context are provided.

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