Skip to main content
Glama
keanehatescoding

hyprland-mcp

focus_window

Focus a window by its unique address or a class/title regex selector (e.g., 'class:^(firefox)$').

Instructions

Focus a window by its unique address (from list_windows) or by class/title regex selector (e.g. 'class:^(firefox)$').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesEither a window address like '0x55f...' or a selector like 'class:^(kitty)$' or 'title:^(Inbox)$'
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses that it focuses a window and specifies two selector types. Lacks mention of side effects (e.g., changing workspace) or error behavior, but for a simple action it's adequate.

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?

Single, well-structured sentence. No redundancy, all information is pertinent and front-loaded.

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?

For a one-parameter tool with no output schema, the description is complete: it identifies the action, the input, and sources for input. Suitable for agent use.

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 has 100% coverage with a good description of 'target'. Description adds value by mentioning 'from list_windows' as source for addresses, going beyond schema.

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?

Clearly states 'Focus a window' with specific methods (address or regex selector). Distinguishes from siblings like 'list_windows' and 'close_window' by targeting a single window for focus.

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?

Provides guidance on using address from list_windows or regex selector. Implicitly suggests when to use each method but doesn't explicitly exclude alternative tools like 'focus_monitor' or 'switch_workspace'.

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/keanehatescoding/hyprland-mcp'

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