Skip to main content
Glama

safari_switch_tab

Switch the active Safari tab for MCP automation without focusing the browser. Use a tab index or a receipt to target an exact owned tab; receipts override indices.

Instructions

Switch the MCP session's logical target without focusing Safari. Pass an index for the current session window, or an opaque receipt to recover the exact owned tab across Safari windows; a valid receipt takes precedence over any supplied index. Rarely needed: passing receipt on each tool call already targets that tab.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoDeprecated legacy receipt URL
indexNoTab index (starting from 1); optional when receipt is provided
receiptNoOpaque extension-issued receipt for the exact owned tab

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv2.17.0
    • changedInput schema / properties / index / description
      Previous value: -"Tab index (starting from 1)"New value: +"Tab index (starting from 1); optional when receipt is provided"
    • addedInput schema / properties / receipt
      Added value: +{
      +  "description": "Opaque extension-issued receipt for the exact owned tab",
      +  "type": "string"
      +}
    • changedInput schema / properties / url / description
      Previous value: -"Exact MCP-owned tab URL, including its mcp-tab receipt, for stateless recovery"New value: +"Deprecated legacy receipt URL"
    • removedInput schema / required
      Removed value: -[
      -  "index"
      -]
  2. Changed1 schema field changedv2.16.3
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "Exact MCP-owned tab URL, including its mcp-tab receipt, for stateless recovery",
      +  "type": "string"
      +}
  3. Addedv2.11.6
  4. Removedv2.11.3
  5. Addedv2.10.9
  6. Removedv2.10.8
  7. Addedv2.10.5
  8. Removedv2.10.4
  9. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description must carry the behavioral burden, and it does: it discloses that Safari is not focused, that the operation changes the logical session target, and that receipt precedence over index is intentional. It does not describe invalid-receipt behavior or what happens when neither parameter is supplied, but the core behavioral traits are present.

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 two sentences with no filler. The most important behavior is front-loaded, the parameter mechanics are compactly explained, and the 'Rarely needed' guidance is placed last as a useful caveat rather than clutter.

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 small, rarely needed tool with no output schema, the description covers the main invocation paths, precedence, and the fact that it does not focus Safari. It could briefly mention how to obtain an index or receipt, but the core information an agent needs to call it correctly is present.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents all three parameters. The description adds meaningful semantics beyond the schema by clarifying how the two targeting mechanisms relate: index is scoped to the current session window, receipt recovers across windows, and a valid receipt supersedes an index. This is useful selection guidance for an agent deciding what to pass.

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 states a specific action ('Switch the MCP session's logical target') and explains the two supported inputs: an index for the current session window or an opaque receipt to recover an owned tab. It also distinguishes this from navigation and tab-management siblings by noting it acts 'without focusing Safari' and that the receipt identifies the exact owned tab across windows.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context: use an index for the current window, or a receipt to recover a tab across windows, and notes that a valid receipt takes precedence. It also explicitly says the tool is 'Rarely needed' because passing a receipt on each call already targets that tab, which provides a useful when-not-to-use signal, though it does not name alternative sibling tools directly.

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/achiya-automation/safari-mcp'

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