Skip to main content
Glama
0aaryan

hypr-tools

by 0aaryan

close_window

Closes the focused window or a specified window by address, letting you dismiss unwanted apps or dialogs on Hyprland.

Instructions

Gracefully close the focused window (or by address)

Input Schema

NameRequiredDescriptionDefault
addressNoWindow address (hex). Omit for focused window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is partly covered. The description adds that the close is graceful and can target a specific address, but it omits consequences such as unsaved data loss or failure behavior when no window is focused.

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 a single compact sentence with the core action and optional targeting front-loaded. There is no wasted text.

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?

For a simple one-parameter tool with full schema coverage and annotations declaring its safety profile, the description gives enough to invoke it correctly. The main missing context is how it relates to kill_window, but the targeting behavior is complete.

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?

Schema description coverage is 100%, so the single address parameter is already documented as a hex window address and omitting it targets the focused window. The description only restates the optional address behavior and adds no syntax or format details beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: close the focused window, with an optional address target. It is clear what the tool does, though it does not explicitly distinguish itself from the sibling kill_window tool.

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?

Usage is implied by 'gracefully close' versus a forceful kill, but the description does not state when to use this instead of kill_window or what happens if no focused window exists. It provides contextual hints rather than explicit routing guidance.

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

Deploy Server

Other Tools