Skip to main content
Glama

Move/Resize Window

window_move

Move or resize a window by setting position and/or dimensions. Returns the verified final frame after the system applies any clamping.

Instructions

Move and/or resize a window. Position/size are set independently — pass only x+y, only width+height, or both. Returns the verified final frame (apps may clamp requested geometry). Requires Accessibility permission.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoNew left edge in global screen points. Requires y to also be set.
yNoNew top edge in global screen points. Requires x to also be set.
widthNoNew width in points. Requires height to also be set.
heightNoNew height in points. Requires width to also be set.
windowHandleYesA windowHandle from window_list or window_get_active.
Behavior5/5

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

Discloses meaningful behavioral traits beyond annotations: requires Accessibility permission, returns a verified final frame, and notes that apps may clamp requested geometry. This adds context about safety and reliability that annotations (readOnly=false, destructive=false) do not fully capture.

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?

Three concise sentences, each serving a purpose: action, parameter grouping, and behavioral outcome. No fluff or repetition of schema details; information is front-loaded and easy to parse.

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

Completeness5/5

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

For a tool with five parameters and no output schema, the description is complete: it covers what it does, prerequisites, parameter combination rules, return behavior, and potential clamping. The sibling tools are distinct enough that no further caveats are needed.

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

Parameters4/5

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

With 100% schema coverage, the baseline is 3, but the description adds value by clarifying the grouping logic (x and y together, width and height together, or both sets). This complements the schema's per-field 'requires' notes and helps the agent understand valid combinations at a glance.

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?

The description clearly states the action: 'Move and/or resize a window.' It distinguishes from siblings like window_focus and window_set_state by specifying exactly what geometry changes are performed. The independent handling of position and size adds specificity beyond the title.

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?

Provides clear context on how to use the tool (pass only x+y, only width+height, or both) and a prerequisite (requires Accessibility permission). However, it doesn't explicitly mention when not to use this tool or name alternatives, though the function is self-evident from the name and description.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sitharaj88/macctl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server