Skip to main content
Glama

Ui Set Value

ui_set_value
Destructive

Use this to replace the value of a native accessible text field or editable control by element ID or semantic selector. Check the target before writing; it may update application data.

Input Schema

NameRequiredDescriptionDefault
idNoElement id returned by ui_snapshot or ui_find. Linux ids are stable per-process accessibility paths and legacy linux:<index> ids remain accepted.
appNoLimit matching to an application/process name substring when available.
pidNoLimit matching to one owning process id when available.
nameNoAccessible name/title substring.
roleNoAccessible role such as Button, Edit, textbox or AXButton.
labelNoCompact numeric label from the most recent ui_snapshot/ui_find; useful for repeated actions without repeating names or coordinates.
valueNoNew text or numeric range value.
deviceYesReMCP device id returned by list_devices. Required for every device operation.
window_titleNoLimit matching to a top-level accessibility window/frame title substring when available.
automation_idNoWindows AutomationId when available.

Output Schema

NameRequiredDescriptionDefault
dataNoAct on UI element structured result for ui_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.
textYesConcise human-readable result of the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

The description enhances the annotations by adding a proactive safety warning: 'it may update application data.' This explicitly states the functional risk beyond the 'destructiveHint: true' annotation, framing the necessary verification step for the agent.

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 an extremely efficient single sentence. It is front-loaded with the core function and ends with a vital operational caveat, demonstrating zero wasted words.

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?

Given the high complexity (10 parameters) and the presence of detailed annotations and an exhaustive schema, the description is highly effective at giving the agent the necessary 'why' and 'how' context, even if it doesn't list every possible input parameter.

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?

Since the schema coverage is 100%, the description does not need to explain parameter values. Instead, it provides semantic context by explaining that the parameters serve as 'element ID or semantic selectors,' guiding the agent on the functional purpose of the inputs (e.g., they are pointers to UI elements, not just strings).

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 states the function: to replace the value of native accessible text fields or editable controls. It specifies the methods of addressing these controls (element ID or semantic selector), providing sufficient clarity while allowing the agent to use the rich input schema to differentiate targeting methods.

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

Usage Guidelines3/5

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

The description provides a crucial operational guideline ('Check the target before writing'). However, it does not explicitly state when to use this tool versus similar siblings like 'browser_type' (which simulates keystrokes) or 'ui_set_range_value,' relying on the agent's ability to infer the difference between setting a value and typing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources