Skip to main content
Glama

Perform one observed MAX+plus II action

desktop_action
Destructive

Execute a single Windows UI action—click, type, drag, scroll, or invoke a menu—then return a fresh screenshot and UI tree for verification. Requires the current window and observation IDs.

Instructions

Directly execute ONE click, hover, key chord, Unicode text entry, value change, drag, scroll, secondary UI action or activation, then return a fresh screenshot/tree. Uses MCP-owned Win32/UIA. Requires latest observationId/windowId. Inspect after every input; no host-specific calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootNoMAX+plus II installation root; defaults to MAXPLUS2_ROOT or discovered installation.
actionYesOne native Windows action; invoke_menu requires an observed enabled leaf menu_index.
windowIdYesWindow ID from the latest observation.
parametersNoinvoke_menu:menu_index from menus.items; click: element_index OR window-relative physical x/y+screenshotId, optional mouse_button/click_count; move:x/y/screenshotId; press_key:key; type_text:text; set_value:element_index/value; drag:from_x/from_y/to_x/to_y/screenshotId, optional mouse_button/durationMs(100..5000); scroll:x/y/scrollX/scrollY/screenshotId (integer wheel units,120 per notch); secondary:element_index/action. Mouse actions may use modifiers:["Ctrl","Shift","Alt"]. Observe actual focus before typing.
operationIdNoOptional unique 1..100 character letters/digits/_/- ID. Retrying identical arguments with this ID reads the cached result and never repeats input; reuse with different arguments is rejected.
observationIdYesUnconsumed ID from desktop_observe or the previous action result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.3

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=false, openWorld=true, so the safety profile is covered. The description adds real context beyond that: it executes exactly one input, uses MCP-owned Win32/UIA rather than host-specific calls, and always returns a fresh screenshot/tree, telling the agent state must be re-inspected after each action.

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?

Three sentences, front-loaded with the action scope, followed by implementation note, preconditions and the inspect loop. Dense but mostly economical; 'no host-specific calls' is a slightly opaque phrase that does not fully earn its place.

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

Completeness4/5

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

For a 6-parameter, nested-object mutation tool with no output schema, the description covers the essential call contract: prerequisites, one-action scope, and the fresh screenshot/tree return value. It leaves operationId retry/caching semantics entirely to the schema, but those are documented there.

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 description coverage is 100% and the nested 'parameters' property documents each action's arguments in detail. The description only restates the observationId/windowId freshness requirement, adding little syntax or format meaning beyond the schema, so the baseline 3 applies.

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

Purpose5/5

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

Specific verb ('Directly execute') plus a precise resource and scope ('ONE click, hover, key chord, Unicode text entry, value change, drag, scroll, secondary UI action or activation'). The single-action framing plus 'return a fresh screenshot/tree' cleanly separates it from the observation-oriented siblings like desktop_observe.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the precondition ('Requires latest observationId/windowId') and the workflow expectation ('Inspect after every input'), which tells the agent to re-observe between actions. It does not explicitly name desktop_observe as the alternative, so the routing is implied rather than spelled out.

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