Skip to main content
Glama

glass_window

Focus, resize, move, or retrieve the geometry of a window. Choose the operation and provide required coordinates or dimensions.

Instructions

Focus/resize/move the window or read its geometry. op: focus|resize|move|geometry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoNew left edge for `op: "move"`, required there and ignored otherwise. Screen coordinates — the one place in this API that is not window-relative, since a window cannot be positioned relative to itself.
yNoNew top edge for `op: "move"`, required there and ignored otherwise. Screen coordinates; see `x`.
opYesOne of: "focus", "resize", "move", "geometry".
widthNoNew width in pixels for `op: "resize"`, required there and ignored otherwise.
heightNoNew height in pixels for `op: "resize"`, required there and ignored otherwise.
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It only names operations and does not disclose side effects (e.g., whether focus steals focus, if move is relative or absolute), return values, error behavior, or any special requirements. The phrase 'read its geometry' is minimal.

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?

The description is a single, front-loaded sentence that efficiently lists the operations. No words are wasted, and it is appropriately sized for the tool's scope.

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 tool with multiple operations, five parameters, and no output schema, the description is under-specified. It does not explain what 'geometry' returns, what the effect of 'focus' is, or any dependencies between operations. The schema covers parameters, but the tool's behavioral context is largely missing.

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?

The input schema provides 100% coverage with detailed descriptions for each parameter, including when they are required and ignored. The description adds no parameter-level information, but the schema already does the heavy lifting, so a baseline of 3 is appropriate.

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?

The description clearly states the tool's function: 'Focus/resize/move the window or read its geometry.' It names specific operations and a resource (window). However, it does not distinguish itself from sibling tools like glass_move, which may be a dedicated move operation, so it lacks sibling differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives such as glass_move, glass_select_window, or glass_list_windows. It merely lists operations without specifying contexts or exclusions.

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/fixed-width/glass'

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