Skip to main content
Glama

ui_set_text

Destructive

Replaces text in a discovered edit control using viewer input, then reads back the value to confirm the change. Does not press Enter.

Instructions

Replace text in a discovered edit control using viewer input, then read back its value. Does not press Enter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: it reads the value back (immediate feedback) and explicitly does NOT press Enter, telling the agent that form submission will not occur.

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?

Two short sentences, zero padding, with the core action and the read-back consequence front-loaded before the trailing constraint clause.

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?

The annotations cover the mutation safety profile and the description covers the 'no Enter' side effect and read-back result, partially compensating for the missing output schema. Still absent: where a valid path comes from, whether focus/selection is required, and what happens on failure.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description supplies no meaning for either parameter. It implies 'text' is the replacement value and hints 'path' identifies a discovered control, but neither the path format nor whether the whole value is overwritten vs. appended is clarified.

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?

States a specific verb and resource: 'Replace text in a discovered edit control', and adds that it reads the value back. An agent can distinguish it from read-side siblings like ui_get_value, though no sibling is named explicitly.

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?

There is no statement of when to use this versus ui_get_value, ui_click, or ui_press_key, and no prerequisite that the control first be located (e.g. via ui_find). The only directional hint is the negative 'Does not press Enter', which is a boundary note rather than usable selection guidance.

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