Skip to main content
Glama

safari_run_script

Automate multi-step Safari tasks by running a sequence of browser actions—navigate, click, fill, scroll—in one call, eliminating the need for repeated tool invocations.

Instructions

Batch Safari actions in one MCP session. Named profiles use the verified extension and support: newTab, switchTab, getReceipt, listTabs, closeTab, navigate, navigateAndRead, readPage, snapshot, getElementInfo, querySelectorAll, waitFor, waitForTime, click, clickAndOpenPopup, fill, fillForm, clearField, typeText, selectOption, pressKey, scroll, scrollTo, scrollToElement, hover, evaluate, reload, goBack, goForward. switchTab accepts an index or an opaque receipt; a valid receipt recovers the exact owned tab across Safari windows without focusing one. clickAndOpenPopup takes exactly one selector or snapshot ref, targets one exact frame, performs one click, captures a blocked HTTP(S) window.open, and opens it as a background tab without focusing Safari; it refuses CAPTCHA/challenge targets and never returns URL query/hash data. Non-profile mode retains the legacy action set. Use getReceipt after a cross-origin redirect.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsYesArray of steps to execute sequentially

Schema Changelog

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

  1. Addedv2.11.6
  2. Removedv2.11.3
  3. Addedv2.10.9
  4. Removedv2.10.8
  5. Addedv2.10.5
  6. Removedv2.10.4
  7. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does substantial work: it explains receipt-based tab recovery across Safari windows, the exact constraints of clickAndOpenPopup (single target, background tab, CAPTCHA refusal, no query/hash return), and legacy mode differences. It stops short of describing failure handling, per-step return values, or whether steps abort on error, but the disclosed quirks are genuinely valuable.

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?

The description is dense but not padded; every clause earns its place, and the batching purpose is front-loaded. The long action list is necessary given the breadth of the tool, though formatting it as a structured list rather than a single run-on paragraph would improve scannability.

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 high-complexity batching tool with no output schema, the description covers the action set, key edge cases, profile-mode behavior, and receipt handling. It does not describe what the tool returns, how errors propagate across steps, or whether steps execute atomically, which an agent might need for robust invocation, but the provided context is unusually thorough.

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?

The schema already documents the steps array and its action/args shape, giving full coverage, so the baseline is 3. The description adds meaning by listing the valid action names and detailing the semantics of ambiguous ones like switchTab and clickAndOpenPopup, which is critical because the schema has no enums or per-action argument documentation.

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 first sentence states the tool's purpose precisely: batching Safari actions in one MCP session. The description then enumerates supported actions, making its scope explicit and distinguishing it from the many single-action sibling tools like safari_click or safari_navigate.

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 clearly frames when to use the tool — for batching multiple actions in one session rather than calling separate tools. It adds operational guidance such as using getReceipt after a cross-origin redirect and notes the legacy action set in non-profile mode, but it does not explicitly say 'do not use this for single actions when a dedicated sibling exists.'

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