Skip to main content
Glama

glass_select_window

Select a window by ID to direct subsequent screenshot, click, type, and window operations to it. Coordinates are then relative to the selected window.

Instructions

Make a window active by id (from glass_list_windows). Subsequent screenshot/click/type/window ops target it; coordinates are relative to it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe window id from `glass_list_windows`. Ids are not stable across calls — re-list rather than caching them.
Behavior4/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It discloses that the window becomes the target for subsequent operations and that coordinates are relative to it, which are crucial behavioral traits. It does not mention error cases or stale IDs, but the main behavior is well covered.

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?

A single, well-structured sentence that immediately states the action and its important implications. No wasted words; every clause adds value.

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 one-parameter tool with no output schema, the description provides sufficient context: what the tool does, where the id comes from, what happens next, and how coordinates behave. This is complete for the tool's simplicity.

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 schema already covers the single 'id' parameter completely (100% coverage), including a note that IDs are not stable across calls. The description adds that the id comes from glass_list_windows, which is useful but minimal; the baseline of 3 applies due to full schema coverage.

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 opens with a specific verb+resource ('Make a window active by id') and explicitly references the source (glass_list_windows), distinguishing it from sibling window-related tools. It clearly states the tool's function without ambiguity.

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?

It explains that subsequent screenshot/click/type/window ops will target the selected window, establishing when this tool should be used (before those operations). It does not explicitly list exclusions or alternative tools, but the usage context is clear.

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