Skip to main content
Glama

set_property

Modify component, decorator, or field properties of existing ELN template components. Specify property key, path, and type to update attributes like placeholder, title, or required.

Instructions

修改已添加组件的属性。可设置任意 x-component-props 或 x-decorator-props 字段。 属性名映射请参考 Skill 文件: formily-schema-guide.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes属性名,如 "placeholder", "size", "title", "required"
pathYes组件路径,如 "card1.sampleNo"。可通过 list_components 查询
valueNo属性值
propTypeYes属性类别: component=x-component-props, decorator=x-decorator-props, field=字段级属性(title, required 等)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

无annotations提供安全信息,描述也未披露任何行为细节。未说明属性设置是覆盖还是合并,未提及权限要求、错误处理或对现有属性的影响。仅提到可以设置任意x-component-props或x-decorator-props字段,这属于参数类别而不是行为。整体行为透明度过低。

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?

描述仅两句话,第一句点明核心功能,第二句提供关键参考信息。结构紧凑,无冗余内容,核心信息前置,符合优秀工具描述的标准。

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?

无输出schema,描述也未说明操作成功与否的反馈方式。但对于一个修改操作,可能不需要详细返回值。不过描述没有说明错误情况、权限要求或对现有属性的影响等上下文信息,参考Skill文件可能补充部分但描述本身不算完整。在无annotations的情况下描述应承担更多责任,因此给3分。

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已覆盖100%参数,但描述额外解释了propType的含义(对应component/decorator)并指出属性名映射参考Skill文件,这为key参数提供了重要指导。相比schema中较为泛泛的描述,描述增加了参数语义的深度,具有明显增值。

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?

描述明确说明'修改已添加组件的属性',准确指出了操作对象和动作。与'add_component'等新增类工具区分明显,但没有明确与'set_full_schema'等整体替换工具的区分。虽然提到了'已添加组件',但没有明确说何时该用此工具而非其他修改工具,但目的清晰,故得4分。

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?

描述没有提供任何使用时机或替代工具的指引。没有说明何时使用本工具而非其他修改工具(如set_full_schema),也没有说明前置条件(如必须先有组件存在)。仅隐含了'已添加组件'这一前提,但缺乏明确的when/when-not说明。

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