Skip to main content
Glama

wait_for_human

Hand off a browser tab for human login, 2FA, or CAPTCHA solving, then poll until a URL change or selector condition is met without stealing focus.

Instructions

Hand off a tab to the human for login/2FA/CAPTCHA without stealing focus: sends an optional macOS notification naming the tab and polls until url_contains, url_not_contains, selector visible, or URL change (switches to headed mode only if the browser currently runs headless).

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": "wait_for_human"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNo
notifyNo
reasonNoComplete login / 2FA / CAPTCHA
selectorNo
timeout_sNo
url_containsNo
poll_interval_sNo
url_not_containsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/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 burden and does well: it discloses the no-focus-steal behavior, the optional macOS notification, that it polls until one of several conditions, and the headless-to-headed switch. It omits what happens when the wait never satisfies the conditions (timeout semantics and blocking duration), which is the main remaining gap.

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?

One dense sentence that front-loads purpose before mechanism, with the parenthetical caveat about headed mode placed last where it belongs. No filler words.

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?

An output schema exists, so return values needn't be described, and the description covers the core mechanics of an 8-parameter, zero-annotation tool. The missing pieces are timeout and poll semantics, which matter for an agent deciding how long to block.

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 0% across 8 parameters, so the description must compensate and it only partly does: it explains notify, selector visibility, url_contains, url_not_contains, and the tab handoff. It says nothing about 'reason', 'timeout_s', or 'poll_interval_s', leaving a third of the surface undocumented anywhere.

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 gives a specific verb+resource ('Hand off a tab to the human') and scopes it to login/2FA/CAPTCHA, which separates it in spirit from the generic 'wait_for' sibling. It stops short of naming or contrasting that sibling explicitly, so an agent must infer the boundary from the human-handoff framing.

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?

The use case (login/2FA/CAPTCHA) is stated clearly, giving implied when-to-use guidance. There is no statement of when NOT to use it or which sibling to prefer for a purely mechanical wait, so the agent must reason about alternatives on its own.

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