Skip to main content
Glama

Window Focus

window_focus
Destructive

Brings a window (by window_id from list_windows) to the front and activates its app. window_not_found if it can't be resolved. Requires Accessibility permission.

Input Schema

NameRequiredDescriptionDefault
window_idYesWindow to bring to the front, from list_windows. Returns window_not_found if it cannot be resolved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / window_id / description
      Added value: +"Window to bring to the front, from list_windows. Returns window_not_found if it cannot be resolved."
  2. Changed1 schema field changed
    • removedInput schema / properties / window_id / description
      Removed value: -"Window to bring to the front, from list_windows. Returns window_not_found if it cannot be resolved."
  3. Changed1 schema field changed
    • addedInput schema / properties / window_id / description
      Added value: +"Window to bring to the front, from list_windows. Returns window_not_found if it cannot be resolved."
  4. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true; the description adds the Accessibility permission requirement and the window_not_found failure mode. It does not detail side effects beyond app activation, but what it adds is consistent and useful.

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?

Three short sentences, front-loaded with the action, then the failure case, then the permission requirement. No sentence is wasted.

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 single-parameter mutation tool, annotations cover the safety profile, the schema covers the parameter, and the description covers permission and failure behavior. It is slightly thin on what 'activates its app' entails, but no output schema exists to require return-value details.

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% and the single window_id parameter is self-documented; the description repeats its source and error behavior but adds little syntax beyond the schema. Baseline 3 applies.

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 and resource: 'Brings a window ... to the front and activates its app.' It references list_windows for window_id but does not explicitly differentiate itself from window_set_frame or other window/UI siblings.

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 prerequisite via 'window_id from list_windows' and gives a failure condition, but does not say when to choose this over window_set_frame or other focus/UI alternatives, nor does it list exclusions.

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