Skip to main content
Glama

desktop_window_control

Control desktop windows and apps: set window frames, launch or kill apps, invoke menus, set values, parse visual regions, and record or replay UI trajectories for GUI automation.

Instructions

Extended cua-driver desktop/visual control: set_window_frame, launch_app, kill_app, invoke_menu, set_value, parse_visual_regions, start_recording, stop_recording, replay_trajectory.

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": {
      "action": "<action>"
    },
    "name": "desktop_window_control"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
actionYes

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?

No annotations are supplied, so the description carries the full disclosure burden and largely drops it. It never warns that kill_app terminates a process irreversibly, that set_value mutates application state, that start_recording/stop_recording produce artifacts and where they go, or that any action requires permissions or a foreground window. Only the adjective 'Extended' gestures at scope, which is not actionable.

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?

It is a single compact sentence, so it is not bloated, but the space is spent enumerating values the schema already provides rather than front-loading useful information. Concise but low-value.

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?

This is a nine-action multiplexer with an untyped nested args object, no annotations, and no output schema, which is the case where description detail matters most. The definition supplies none of the per-action contracts, side effects, or result expectations an agent needs to dispatch correctly.

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 critical parameter is a free-form `args` object with additionalProperties and no documented shape, so the description is the only place per-action argument requirements could be explained. Instead it just repeats the nine enum values already visible in the schema and says nothing about what args each action expects, making the tool effectively uninvokable without trial and error.

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?

The description opens with 'Extended cua-driver desktop/visual control', which names a domain but not a specific operation, then lists nine action names that are simply a restatement of the schema enum. An agent can guess capability from the action names (launch_app, kill_app, parse_visual_regions), but the prose itself never states what the tool does as a whole or how it differs from siblings like desktop_click or desktop_get_window_state.

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 at all. Nothing says when to pick this dispatch tool over desktop_click, desktop_hotkey, desktop_run_steps, or desktop_get_window_state, and nothing indicates preconditions such as needing a window handle, an app already running, or a prior recording for replay_trajectory.

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