Skip to main content
Glama

Window Move Resize

window_move_resize

Use this to reposition and resize a specific desktop window in one action with explicit coordinates and dimensions. Verify its identity and monitor bounds beforehand.

Input Schema

NameRequiredDescriptionDefault
xYesVirtual-desktop X coordinate in pixels.
yYesVirtual-desktop Y coordinate in pixels.
idNoWindow id returned by list_windows.
appNoApplication/process name substring.
pidNoOwning process id.
titleNoWindow title substring.
widthYesWidth in pixels.
deviceYesReMCP device id returned by list_devices. Required for every device operation.
heightYesHeight in pixels.
backendNoInput backend preference. auto uses proven local backends and already-authorized portal input; portal explicitly requests XDG RemoteDesktop consent on Wayland; x11 forces XWayland/xdotool only for operations where read-back testing shows it is reliable. GNOME Wayland keyboard/text deliberately reject x11.

Output Schema

NameRequiredDescriptionDefault
dataNoWindow action structured result for window_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.
textYesConcise human-readable result of the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, so the mutation profile is known. The description adds that move+resize are applied atomically in one call and that identity/bounds should be checked first; it does not say what happens on invalid coordinates, out-of-bounds values, or a missing window.

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?

Two tight sentences, with purpose front-loaded and the precondition second. No filler, though the second sentence is advisory and slightly under-specified ('monitor bounds' assumes the agent knows how).

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?

An output schema and full schema descriptions carry most of the load, so the description needn't explain returns. However, for a 10-parameter mutation tool it says nothing about window-selector precedence (id vs app vs pid vs title) or failure behavior, leaving gaps the structured fields don't fill.

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 100%, so the schema already documents all 10 parameters including the backend enum and the id/app/pid/title selectors. The description only echoes 'explicit coordinates and dimensions' without adding format or unit detail beyond what the schema supplies.

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 specific verb pair and resource: 'reposition and resize a specific desktop window.' The phrase 'in one action' distinguishes it from the separate window_move and window_resize siblings, though it never names them explicitly.

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?

'Use this to...' plus 'verify its identity and monitor bounds beforehand' gives an implied precondition, but it never says when to prefer this over window_move / window_resize or what to do if the target is ambiguous. Usage is implied rather than routed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources