Skip to main content
Glama
NasirSultan

desktop-control-mcp

by NasirSultan

Bring app window to front

focus_app

Brings an application window to the foreground, un-minimizing it when necessary. Uses app name or process ID to select a specific window among multiple open instances.

Instructions

Show and switch focus to an app's window (un-minimizes it if needed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appYesFriendly app name or process name
pidNoProcess ID to pick a specific window when more than one window of this app is open. Omit it first - if there are multiple matches, the tool lists their PIDs and titles so you can retry with the right one.
Behavior3/5

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

With no annotations, the description carries the disclosure burden. It does disclose two behaviors—bringing the window into view and un-minimizing—which is useful. However, it does not describe failure behavior when the app is not running or when no matching window exists, leaving a nontrivial behavioral gap for an unannotated tool.

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 sentence with no wasted words. The main action is front-loaded and the useful un-minimize qualifier is efficiently tucked into a parenthetical.

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 two-parameter tool, the description plus the detailed schema covers the basic call, but the lack of any pointer to sibling tools—especially open_app and focus_folder_window—and the unstated precondition that the app is already running leave the context slightly incomplete.

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 baseline is 3; the description itself adds no parameter-level detail. The pid parameter is already well documented in the schema, including the guidance to omit it first and retry with a PID when multiple matches occur.

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?

The description uses a specific verb ('Show and switch focus') plus a clear resource ('an app's window'), and adds a useful behavioral qualifier: un-minimizes it if needed. It differentiates from the sibling focus_folder_window because the target is explicitly an app window rather than a folder window.

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?

The intended use is implied by the verb 'focus' and the target 'app window', but the description never says when not to use it, that the app must already be running, or that open_app or focus_folder_window should be chosen for launching apps or focusing folder windows. No explicit alternatives or exclusions are given.

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/NasirSultan/desktop-control-mcp'

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