Skip to main content
Glama
safari-mcp
by tszaks

safari_close_tabs

Close multiple Safari tabs in a specified window by passing tab indices and a window index, enabling agents to clean up browser sessions.

Instructions

Close multiple Safari tabs in a window.

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

Input Schema

NameRequiredDescriptionDefault
tab_indicesNo
window_indexNo

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?

No annotations are supplied, so the description carries the full behavioral burden for a destructive operation. It does not say whether closed tabs lose state, whether the operation is reversible, what happens to invalid indices, or which window is targeted by default — all material for a close operation.

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 brevity comes at the cost of the missing behavioral and parameter detail noted above.

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?

For a destructive bulk operation with no annotations, no output schema, and zero schema coverage on both parameters, this definition is too thin. An agent cannot know the indexing convention, default window, or failure behavior before committing to an irreversible action.

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%, and the description adds no parameter meaning beyond the nouns "tabs" and "window". It does not state that tab_indices are 1-based (the schema's minimum:1 hints at it but is not explained), nor whether window_index defaults to the current window when omitted.

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 specific verb plus resource ("Close multiple Safari tabs") and adds a scope qualifier ("in a window") that implicitly separates it from the singular sibling safari_close_tab. It stops short of naming that sibling, but an agent can still tell the bulk-close tool apart from the single-tab one.

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 guidance on when to prefer this over safari_close_tab, no prerequisites, and no statement about what happens when tab_indices is omitted or empty. The agent must infer all routing and precondition logic from the tool name alone.

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