Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Focus a window

focus_window

Activates a Hyprland window by its address, bringing it to the foreground so you can control the intended desktop window.

Instructions

Focus a window by its Hyprland address (from list_windows).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "focus_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It reveals the environment (Hyprland) and that focus is a state change, but says nothing about failure behavior for a stale or unknown address, whether focusing pulls the window to the current workspace, or whether focus is raised/stacked.

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?

A single short sentence with the action front-loaded and the parameter source attached as a parenthetical. No filler and nothing buried.

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

Completeness3/5

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

For a one-parameter, no-output-schema tool this covers the essential input path. It is still thin on outcome: an agent cannot tell from the definition whether the call errors on an invalid address or what observable state change to expect afterward.

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 description coverage is 0%, so the bare 'address: string' is undocumented in structured data. The description compensates by naming the identifier's origin (from list_windows) and its Hyprland-native form, which is exactly the meaning an agent needs; only the literal address format is left unstated.

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?

States a specific verb (focus) and resource (window), plus the identifier type it acts on. It is distinguishable from list_windows (the source of the address) and get_active_window (which reads rather than sets focus), though it never explicitly names those contrasts.

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?

Implies the workflow by saying the address comes from list_windows, so an agent knows the prerequisite call. It gives no when-not guidance, no mention of what to do if the window is on another workspace, and no explicit alternative to get_active_window for checking state.

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