Skip to main content
Glama

get_window_region

Return visibility and region of a macOS app's front window. Use before recording to confirm the window is on screen and sufficiently visible, avoiding partial or minimized windows.

Instructions

Return the visible front-window region for a macOS app.

Use this before macOS app or browser recording to verify the target window
is on screen, active, and sufficiently visible. The default
min_visible_ratio is 0.8; lower it only when partial visibility is
intentional.

The response includes visible, visible_ratio, region, frame, and screen
details. If visible is false, reposition or unminimize the window before
calling start_app_window_recording.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_nameYesExact macOS application name (e.g. 'Google Chrome').
paddingNoPixels added to all sides of the window region. Default 0.
min_visible_ratioNoMinimum visible_ratio to treat the window as usable. 0.0-1.0, default 0.8.
activateNoActivate the app before measurement. Set False only when measuring a background window intentionally.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses that the tool returns visible, visible_ratio, region, frame, and screen details. It mentions the activate param defaults to true and sets expectations for measuring background windows. No destructive behavior is noted, but activation behavior is covered. This is good transparency, though it could mention potential side effects of activation.

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 concise, with 5 sentences covering purpose, usage, parameters, and response. No redundant information. It is well-structured and front-loaded with the core purpose. Every sentence 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?

Given the moderate complexity (4 parameters, 1 required) and the existence of an output schema (context signal), the description is complete. It explains the typical use case, parameter defaults, response structure, and error recovery. No gaps identified.

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?

Schema coverage is 100%, so baseline is 3. The description adds semantic value beyond schema descriptions: it explains that min_visible_ratio should be lowered only when partial visibility is intentional, and activate should be set to False only when measuring a background window intentionally. This provides important usage guidance that the schema alone lacks.

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 tool returns the visible front-window region for a macOS app, using a specific verb+resource. It distinguishes itself from siblings by explicitly mentioning its use before app window recording, indicating it is a verification step rather than a recording tool.

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

Usage Guidelines5/5

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

The description provides explicit usage context: use before macOS app or browser recording to verify window visibility. It explains the min_visible_ratio default and advises when to lower it. It also instructs what to do if visible is false (reposition or unminimize), effectively guiding the agent on when and how to use the tool.

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/Corvus400/video-capture-mcp'

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