Skip to main content
Glama
safari-mcp
by tszaks

safari_find_tab

Search open Safari tabs by URL or title substring to locate and activate the right tab, avoiding duplicate tabs or interrupting the user's logged-in session.

Instructions

Search all open Safari tabs by URL or title substring. Returns matching tabs with window_index and tab_index so you can activate them. Use this before safari_open_url to avoid opening a duplicate tab or losing the user's existing session (e.g. their logged-in GitHub tab).

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": {
      "query": "<query>"
    },
    "name": "safari_find_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesCase-insensitive substring to match against tab URL or title (e.g. "github.com", "Pull Requests")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that results include window_index and tab_index usable for activation, which is useful behavioral context. It never explicitly states the operation is read-only and side-effect free, and says nothing about permissions required for Safari automation or how results are ordered.

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?

Two sentences, front-loaded with the core action, followed by the return payload and the workflow rationale. Every clause earns its place and nothing is repeated padding.

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 one-parameter read tool with no output schema, the description covers what it does, what it returns, and why to call it first, which is nearly everything an agent needs. Minor gaps remain around no-match behavior and whether searches span all windows.

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 coverage is 100% for the single 'query' parameter, and the schema already specifies case-insensitive substring matching against URL or title with examples. The description restates 'by URL or title substring' without adding format, escaping, or matching behavior beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Search all open Safari tabs by URL or title substring') plus the scope 'all open' tabs, which separates it from safari_get_active_tab or safari_list_tabs. It also names the sibling it precedes (safari_open_url), so an agent can route without opening a schema.

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?

Gives a concrete when-to-use rule: call this before safari_open_url to avoid duplicate tabs or disrupting the user's logged-in session. It does not explain when to prefer safari_list_tabs or what to do when no tabs match, so the guidance is clear but not exhaustive.

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