Skip to main content
Glama

desktop_set_value

Replaces a field's entire value in a macOS app via its accessibility reference so agents can update UI fields directly instead of relying on screenshots.

Instructions

Replace a field's whole value.

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": {
      "ref_id": "<ref_id>"
    },
    "name": "desktop_set_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNo
headedNo
ref_idYes
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, yet it discloses almost nothing: whether the element must be focused first, whether existing content is cleared, whether the operation is destructive/irreversible, what permissions or app state are required, and how failures surface. The only real signal is that the entire value is overwritten rather than appended.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The single sentence is front-loaded and free of padding, but here brevity is under-specification rather than economy. There is no structure to help the agent understand preconditions or side effects.

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 four-parameter UI mutation tool with no annotations, no output schema, and zero schema documentation, this is far too thin. An agent cannot determine required setup, side effects, or return behavior from the definition alone.

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 four parameters (ref_id, value, headed, timeout_ms) are completely undocumented in both schema and description. "A field's whole value" loosely gestures at the value parameter but says nothing about ref_id semantics, the meaning of headed, or what timeout_ms controls.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Replace a field's whole value" names a verb and a resource and hints at the important distinction between whole-value replacement and incremental typing. However, "field" is never grounded in the desktop/UI context implied by the siblings (desktop_get, desktop_find, desktop_type), so the agent must guess what object is being modified.

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 when-to-use or when-not-to-use guidance, and no mention of the obvious alternatives such as desktop_type (appending/typing text) or desktop_set_value's relationship to desktop_check/desktop_toggle for boolean fields. The agent must infer selection from names alone.

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