Skip to main content
Glama
safari-mcp
by tszaks

safari_activate_window

Bring a specified Safari window to the front by its index so agents can focus the correct browser window before interacting with it.

Instructions

Bring a Safari window to the front.

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": {
      "window_index": "<window_index>"
    },
    "name": "safari_activate_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
window_indexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and does not meet it. It does not say whether a minimized window is restored, whether the active tab within the window changes, what happens if the index is out of range, or what the call returns.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the terseness is part of why important behavioral and parameter detail is missing.

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?

The tool is simple — one required integer and no output schema — but correctness hinges on index semantics and on what 'activate' does to window/tab focus state, none of which is covered. For a focus-changing UI action with zero annotation coverage, the description is under-specified.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain the single parameter and does not mention window_index at all. It omits that the index is presumably 1-based (the schema's minimum of 1 hints at this) and where a valid index comes from.

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 states a specific verb ('bring... to the front') and resource ('a Safari window'), which is unambiguous on its own. It does not, however, distinguish this from the sibling safari_activate_tab, so an agent must infer that this one operates on whole windows rather than tabs.

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 when-to-use guidance, no mention of the alternative safari_activate_tab, and no stated precondition such as needing a window index obtained from safari_list_windows. The agent is left to infer the entire selection context.

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