Skip to main content
Glama

set_value

Set text content in editable UI elements like text fields and combo boxes, with options to replace existing content or insert at cursor position.

Instructions

Set text content of an editable element.

Args:
    element_id: The element ID (a text field, combo box, etc.).
    value: The text to write.
    replace: If true, clear the field first and replace all content.
             If false (default), insert at the current cursor position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
element_idYes
valueYes
replaceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Since no annotations exist, the description carries full burden. It adequately explains the mutation behavior via the 'replace' parameter (clear field vs. insert at cursor), but lacks disclosure of error conditions, event triggering (e.g., onChange events), or whether the operation is atomic/reversible.

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?

Uses an 'Args:' section which is slightly unconventional but efficient. Front-loaded with the core action sentence, followed by structured parameter documentation. No wasted words, though the format could be more prose-oriented to match standard MCP conventions.

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?

Adequate for basic invocation given the output schema handles return values. However, for a UI automation tool with 3 parameters and complex interaction patterns, it omits critical context like error handling (what if element_id is invalid?), visibility requirements, and relationships to sibling input methods.

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

Parameters5/5

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

With 0% schema description coverage (schema only provides titles), the description fully compensates by documenting all three parameters: element_id (with examples like 'text field, combo box'), value ('The text to write'), and replace (detailed boolean behavior). This is excellent compensation for schema deficiencies.

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 clear verb ('Set') and resource ('text content of an editable element'). Distinguishes from 'set_numeric_value' by specifying text content, but does not explicitly differentiate from 'type_text' (simulated typing vs. direct value setting).

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?

Lacks explicit guidance on when to use this tool versus siblings like 'type_text' or 'set_numeric_value'. The 'replace' parameter explanation describes mechanics but not selection criteria or prerequisites (e.g., whether element must be focused first).

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/Touchpoint-Labs/Touchpoint'

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