Skip to main content
Glama

Window Close

window_close
Destructive

Use this to close a specific application window on the paired computer. Closing may discard unsaved changes or quit an application; confirm the intended window and save work first.

Input Schema

NameRequiredDescriptionDefault
idNoWindow id returned by list_windows.
appNoApplication/process name substring.
pidNoOwning process id.
titleNoWindow title substring.
deviceYesReMCP device id returned by list_devices. Required for every device operation.
backendNoInput backend preference. auto uses proven local backends and already-authorized portal input; portal explicitly requests XDG RemoteDesktop consent on Wayland; x11 forces XWayland/xdotool only for operations where read-back testing shows it is reliable. GNOME Wayland keyboard/text deliberately reject x11.

Output Schema

NameRequiredDescriptionDefault
dataNoWindow action structured result for window_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.
textYesConcise human-readable result of the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

The description adds significant behavioral context by noting that 'closing may discard unsaved changes or quit an application.' This complements the `destructiveHint: true` annotation by providing the specific risks and consequences of the action.

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 definition is highly concise, using two efficient sentences. The first sentence defines the scope and action, and the second provides the essential warning, maximizing information density.

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 is very complete for a destructive operation. It covers the 'how' (closing the window), the 'where' (paired computer), and the critical 'what if' (loss of unsaved data/quitting the app). With 100% schema coverage, this risk disclosure is highly valuable.

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?

Given that schema description coverage is 100%, the baseline score is 3. The description reinforces the intent of the parameters, specifically that they are used to identify a 'specific application window,' adding semantic clarity to the required identification process.

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 exact action ('close a specific application window') and the target environment ('on the paired computer'). It is specific and unambiguous, making its function immediately apparent.

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?

While it does not explicitly compare itself to alternatives (e.g., minimizing), it provides critical usage guidance by warning the user to 'confirm the intended window and save work first.' This guides the agent on the required caution.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources