Skip to main content
Glama

desktop_focus_window

Brings a specified macOS window to the front by app, title, or window ID, so agents can activate the right window before interacting with its controls.

Instructions

Bring a window to the front.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "desktop_focus_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
titleNo
window_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.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 behavioral burden and mostly fails it. It does not say whether focusing steals input focus, raises above other windows, fails when the window is missing, or whether any of the three identifiers are required.

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

Conciseness3/5

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

A single short sentence with no filler, so it is efficient, but the brevity comes at the cost of under-specification rather than earned conciseness. Front-loading the action is fine; there is simply nothing behind it.

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

Completeness2/5

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

For a window-targeting tool with three ambiguous optional identifiers, no annotations, and no output schema, the definition should at minimum explain how a window is identified and what happens on failure. None of that is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Three parameters (app, title, window_id) with 0% schema description coverage and no mention of them whatsoever in the description. Critically, all three are optional and the description never explains precedence, whether they combine as filters, or what happens when nothing is supplied.

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?

A concrete verb ('bring to the front') applied to a concrete resource ('a window'), so an agent can tell what the tool does at a glance. It does not, however, distinguish itself from siblings like desktop_focus or desktop_list_windows, leaving ambiguity about whether it operates on a window by identity or on a focused element.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus desktop_focus, desktop_list_windows, or desktop_find, nor any stated prerequisite such as needing the window to exist or being obtained from a prior listing call. The agent is left to infer usage entirely.

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