Skip to main content
Glama

Minimize, maximize or restore a window

exza_desktop_window_action
Destructive

CHANGE: Minimize, maximize or restore one listed macOS or Windows app window by PID. Requires owner authorization; protected or elevated windows may refuse.

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": {
      "pid": "<pid>",
      "action": "<action>"
    },
    "name": "exza_desktop_window_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYes
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-structured context above that bar: an authorization requirement and the concrete failure mode that protected or elevated windows may refuse the operation. It does not say what state the window is left in on refusal or whether the call returns any confirmation.

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

Conciseness4/5

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

Two compact sentences with the action set and target scope front-loaded, followed by the authorization and refusal caveats. The leading 'CHANGE:' tag is a slightly awkward artifact but does function as an at-a-glance classification rather than wasted text.

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 two-parameter state-mutating tool with a fully covered annotation set and no output schema, this is close to complete: platform scope, precondition, and known refusal cases are all present. The only real shortfall is target disambiguation when the PID owns multiple windows, which matters for a mutation tool and is left unaddressed.

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 0%, so the description has to carry the parameter meaning, and it does explain that the window is identified 'by PID' and that the action is one of three named transitions. That still leaves the important ambiguity unresolved: a process may own several windows, and the definition never says which window is affected or how the agent should confirm the target beforehand. The enum values for action are self-explanatory, so listing them adds little beyond the schema.

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 description gives a concrete verb (change window state) plus the resource (a single app window), and enumerates exactly the three allowed transitions: minimize, maximize, restore. It also scopes the platforms (macOS or Windows) and requires the target to be 'one listed' window, which implicitly tells the agent where the target comes from. It never names the adjacent siblings such as focus_window or window_geometry, so the boundary between 'change state' and 'bring to front' or 'move/resize' is left for the agent to infer.

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 definition supplies useful preconditions ('Requires owner authorization') and a caveat about protected/elevated windows refusing, which an agent needs before attempting a call. What is absent is any statement of when to pick this tool over the similarly named focus/active_window/geometry siblings, so the choice between them is only implied by the verb 'minimize, maximize or restore'.

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