Skip to main content
Glama

Set value

set_value

Sets a text field, slider, or combo box to a specified value in a Windows desktop app using an element index from the last app state.

Instructions

Set the value of a text field / slider / combo box at element_index (ValuePattern).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "app": "<app>",
      "element_index": "<element_index>",
      "value": "<value>"
    },
    "name": "set_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
valueYes
element_indexYesElement index from the last get_app_state, as a string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

readOnlyHint=false already signals a mutation, so the description's added value is the ValuePattern mechanism, which hints that elements lacking that automation pattern will fail. It does not state what happens on failure, whether the value is overwritten or appended, or whether change events fire — meaningful gaps for a write operation.

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?

A single front-loaded sentence with no padding; the parenthetical mechanism note earns its place by constraining applicability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-required-parameter mutation tool with no output schema and no annotations beyond readOnlyHint=false, the definition leaves too much open: no description of 'app', no error behavior, no mention that element_index must come from a prior get_app_state call.

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

Parameters3/5

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

Schema coverage is only 33%: element_index is documented in the schema, but 'app' and 'value' are bare. The description implies value is set via ValuePattern (a string, even for sliders) but never explains 'app' or how it relates to list_apps/get_app_state.

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?

Names a specific verb ("Set") and resource ("value of a text field / slider / combo box at element_index"), so an agent can tell it apart from keyboard-driven siblings like type_text and browser_type. It stops short of explicitly naming or contrasting those alternatives.

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?

Usage is only implied by the element types listed (text field, slider, combo box) and the ValuePattern reference; there is no statement of when to prefer this over type_text/browser_type, nor any preconditions such as the element needing to be visible or focusable.

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