Skip to main content
Glama

apply_layout

Move and resize windows on any monitor into custom layouts using fractional frames. Arrange multiple apps per call with optional title filters.

Instructions

Move and resize windows to build a layout. Each item places one window: 'app' is the app name (fuzzy matched), optional 'title' filters windows of that app by title substring, optional 'screen' is the monitor index from get_state (each monitor can get its own layout — just send items with different 'screen' values; defaults to the screen the window is currently on), 'frame' is {x,y,w,h} as fractions 0..1 of that screen's visible area with origin at TOP-LEFT (left half = {x:0,y:0,w:0.5,h:1}; bottom-right quarter = {x:0.5,y:0.5,w:0.5,h:0.5}; centered 60% = {x:0.2,y:0.15,w:0.6,h:0.7}). Windows are unminimized if needed. Returns per-item success/errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
Behavior5/5

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

No annotations are provided, so the description carries the full burden of disclosure. It thoroughly explains fuzzy app matching, title substring filtering, screen defaulting, frame coordinate semantics (top-left origin, fractions 0..1), unminimizing behavior, and return value format (per-item success/errors). This exceeds typical transparency expectations.

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 long but every sentence earns its place. It is front-loaded with the core action, followed by a logical breakdown of each field with illustrative examples. The structure guides the reader from high-level intent to specific parameter details without redundancy.

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 tool's complexity (multi-monitor support, coordinate math) and the absence of an output schema, the description is remarkably complete. It explains how windows are matched, how frames are interpreted, the effect on minimized windows, and the return format. It even references get_state for screen indices, tying into sibling tools.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates. It defines every parameter: 'app' (fuzzy matched), 'title' (substring), 'screen' (index from get_state, defaults to current), and 'frame' (x,y,w,h with concrete examples like left half and bottom-right quarter). The examples make the coordinate system unambiguous.

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: 'Move and resize windows to build a layout.' This clearly distinguishes it from siblings like 'snap_window' (single window) and 'apply_saved_layout' (predefined layout). The scope is well-defined as a multi-window arrangement tool.

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?

Clear context is provided: it explains how to structure items (app, title, screen, frame) and even shows how to target multiple monitors. However, it does not explicitly state when to choose this over alternatives, such as 'apply_saved_layout' or 'snap_window'. It leaves that inference to the agent, making it a 4 rather than a 5.

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/ostapondo/Plonk'

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