Skip to main content
Glama

apply_layout

Arrange app windows into custom on-screen layouts by specifying app, position, and size; supports multiple monitors and per-window placement.

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
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that windows are unminimized, app matching is fuzzy, and returns per-item success/errors. It also specifies coordinate origin and fraction semantics. However, it doesn't mention side effects on existing layouts or persistence, but the provided details are substantial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph packed with useful information. It lacks visual structure like bullet points, but every sentence contributes value. While it could be better organized, it is not verbose or redundant.

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

Completeness4/5

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

The description covers the core behavior, return value indication, and multi-screen support. It doesn't mention edge cases or failure handling beyond per-item errors, but given the complexity and lack of output schema, it is quite complete. It also distinguishes from related tools indirectly.

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?

The description enriches parameter understanding beyond the schema: 'app' is fuzzy matched, 'screen' defaults to current screen and comes from get_state, 'frame' uses fractions with top-left origin and provides concrete examples. This adds significant meaning beyond the schema's simple descriptions.

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's purpose: 'Move and resize windows to build a layout.' This is a specific verb+resource that distinguishes it from siblings like snap_window (single window) and apply_saved_layout (predefined layout). The description also explicitly mentions multi-screen support, further clarifying scope.

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

Usage Guidelines3/5

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

The description explains how to use the tool via the 'items' array and parameter details, but it does not explicitly state when to use this tool versus alternatives. It doesn't contrast with apply_saved_layout or snap_window, leaving usage context implied rather than stated.

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