Skip to main content
Glama

safari_click_and_wait

Clicks a visible element or CSS selector, then waits for the resulting page load or specified element, combining click and wait steps in Safari automation.

Instructions

Click an element AND wait for the result (page load or element). Use instead of click + wait_for separately.

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_click_and_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNoOptional short purpose of this step, shown to the user in the cursor's status pill (e.g. 'to save the settings'). The page can read it: never put passwords, codes, card numbers or other private data in it.
textNoVisible text to click
timeoutNoWait timeout in ms (default: 10000)
waitForNoCSS selector to wait for after click
selectorNoCSS selector to click

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does explain the compound effect (click then wait, with either page-load or CSS-selector wait) and the schema supplies a 10000ms default timeout, but the description never mentions what happens on timeout failure, whether the click can mutate server state, or what is returned on success.

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?

Two short sentences with zero waste, and the primary behavior is front-loaded before the disambiguation clause. Nothing redundant or padded, though the guidance sentence is telegraphic enough to read slightly like a fragment.

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 five-parameter, zero-required browser action with no output schema, the description covers the essential contract: click, then wait on one of two conditions. Return values need not be explained since no output schema exists, but failure behavior and the interaction between selector and text are left unaddressed.

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 description coverage is 100%, so all five parameters are already self-documenting and the baseline is 3. The description only adds the notion that the wait target may be either page load or an element, which lightly reinforces the waitFor parameter but gives no new syntax or precedence guidance between selector and text.

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 concrete verb (click) plus resource (an element) and the compound behavior (wait for page load or element) in one line. The parenthetical maps onto the schema's two wait modes, so an agent can tell it apart from sibling safari_click without opening either schema.

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

Usage Guidelines3/5

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

It names the alternative pattern explicitly ('Use instead of click + wait_for separately'), which is real routing guidance. It stops short of stating when NOT to use it — e.g. that plain safari_click is preferable when no navigation or element change is expected — so the exclusion side is left to inference.

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

Deploy Server

Other Tools