Skip to main content
Glama
computer
by zznabil

Raise window

raise_window
Destructive

Bring a specific desktop window to the front and give it keyboard focus. Use it when the window itself must be raised, not just for foreground-only actions.

Instructions

Bring a window to the front and give it the user's keyboard. Use when the window itself needs to be raised; prefer and fallback already take over for foreground-only actions when permitted.

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": "raise_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoWindow id ("window:<id>" accepted).
targetNoAlias of id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.3
    • changedInput schema / properties / id / description
      Previous value: -"Window id."New value: +"Window id (\"window:<id>\" accepted)."
    • addedInput schema / properties / target
      Added value: +{
      +  "description": "Alias of id.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id"
      -]New value: +[]
  2. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already flag destructiveHint=true, openWorldHint=true, and idempotentHint=false, which is a lot of safety signal for a focus operation. The description adds the meaningful detail that this steals the user's keyboard focus, but it never explains why the call is destructive or non-idempotent (does it un-minimize, reorder z-stack, interrupt typing?), which is the one thing an agent still needs. No annotation contradiction, but the gap between 'give it the user's keyboard' and destructiveHint=true is left for the agent to infer.

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?

Two sentences, and the action is front-loaded, which is good. The second sentence is dense with undefined internal jargon ('prefer and fallback ... when permitted') that costs the reader more than it returns. Trimming or naming the actual alternative would make it tight.

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?

No output schema and no required parameters keep the burden low, but the definition still leaves open what happens on failure (no such window, window already frontmost) and whether minimized windows are restored. Given destructiveHint=true, an agent needs at least a hint of the failure/edge behavior before calling.

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 both properties are documented, including that 'target' is an alias of 'id', so the schema carries the load. The description says nothing about the parameters and adds no meaning beyond them. 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?

The verb and resource are specific: bring a window to the front and hand it the user's keyboard focus. That is clearly distinct from the element_* and ax_* siblings, which act inside a window rather than on the window itself. It falls short of a 5 only because the second sentence drags in unexplained terms that muddy the otherwise clean statement of purpose.

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?

It does give a when-to-use condition ('when the window itself needs to be raised'), which is real guidance. But the routing clause references 'prefer and fallback' as if they were tools, and no such sibling exists in the supplied list, so the agent cannot act on the exclusion. The intended alternative (letting a click/type action raise the window implicitly) is only guessable.

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