Skip to main content
Glama
tiefeiyu
by tiefeiyu

qt_set_property

Write a property value on a UI element in a live Qt application. Directly changes the app's state, so use when a direct API write is intended.

Instructions

Write a property value on a UI element.

DESTRUCTIVE: directly modifies the target application's state (may trigger property-notify signals, change geometry/visibility/business state) with no undo. Prefer real user input (clicks/typing) to simulate user actions; use this only when a direct API write is intended.

value is first parsed as JSON: "true" -> bool, "123" -> int, ""hello"" -> string. Unparseable text is sent as a plain string — pass quoted strings explicitly when a string is intended.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
valueYes
element_idYes
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries full burden. It discloses that the tool is 'DESTRUCTIVE,' directly modifies application state, may trigger property-notify signals, change geometry/visibility/business state, and has no undo. It also details value parsing behavior, adding critical behavioral context beyond 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: a one-line purpose, a clear warning block, and a focused value-parsing note. Every sentence adds necessary information without redundancy.

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?

Given that this is a destructive write operation with no annotations and a 0%-coverage schema, the description covers the key aspects: what it does, when it should be used, its side effects, and value semantics. The output schema exists, so return-value details are not needed. It is sufficiently complete for an agent to invoke it correctly.

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. It thoroughly explains the `value` parameter with JSON parsing rules ('"true" -> bool, "123" -> int'), but does not explicitly describe session_id, element_id, or name. However, their meanings are reasonably inferable from the purpose statement and parameter names, making this a partial compensation.

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 begins with 'Write a property value on a UI element,' which clearly names the action and resource. It is distinct from sibling tools like qt_get_property (reading) and qt_call_method (calling methods), making its purpose unambiguous.

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

Usage Guidelines5/5

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

The description explicitly states 'Prefer real user input (clicks/typing) to simulate user actions; use this only when a direct API write is intended.' This provides clear when-to-use and when-not-to-use guidance, contrasting with alternative input methods.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tiefeiyu/qt-commander'

If you have feedback or need assistance with the MCP directory API, please join our Discord server