Skip to main content
Glama

safari_wait_for

Waits for a CSS selector or text to appear on the current Safari page, with an optional timeout, so an AI agent can continue when the page is ready.

Instructions

Wait for an element or text to appear on the page

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

Input Schema

NameRequiredDescriptionDefault
textNoText to wait for
receiptNoOmit it: Daylight has no tab receipts and refuses a call that passes one
timeoutNoTimeout in ms (default: 10000)
selectorNoCSS selector to wait for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 burden and it does very little: it does not say what happens when the timeout elapses (error vs. silent return), whether the wait blocks, or whether an active tab must already be focused. The odd "receipt" parameter is only explained by the schema, not the description. For an unannotated tool this is a substantial disclosure gap.

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 short sentence with the core action front-loaded and no filler. It is appropriately sized for a simple tool, though its brevity borders on under-specification rather than tightness. No structural issues.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity wait tool with a fully described four-parameter schema and no output schema, a short description is defensible. However, with zero annotations and no return-value contract, the description leaves timeout-failure behavior and tab-context requirements entirely unstated, which an agent calling this tool needs to know.

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 every parameter is already documented in the schema, and the baseline for a fully-covered schema is 3. The description's phrase "element or text" loosely maps to selector/text but adds no format, default, or mutual-exclusion semantics beyond what the schema already states.

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 states a specific verb and resource: "Wait for an element or text to appear on the page." An agent immediately knows this is a polling/waiting primitive scoped to page content. It stops short of distinguishing itself from sibling wait tools such as safari_wait, safari_wait_for_new_tab, or safari_click_and_wait, so it earns a 4 rather than a 5.

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 choose this over the sibling wait tools, nor any exclusion or prerequisite. It never says that selector and text are alternatives (supply one or the other), that timeout is optional, or what a caller should do if the element is already present. The agent must infer all call-site decisions.

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