Skip to main content
Glama

Wait for control

wait_for_control
Read-only

Pauses execution after handing browser control to a user, then resumes when they return it or after the timeout expires; call again to keep waiting without reclaiming control.

Instructions

After handing control to the user (task.handOff({ message })), wait until they give it back in the browser, then continue. Returns when control is back or after timeout_minutes (default 10); call again to keep waiting. Never takes control back.

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": {
      "space_id": "<space_id>"
    },
    "name": "wait_for_control"
  }
}

Input Schema

NameRequiredDescriptionDefault
space_idYesTask space id
timeout_minutesNoHow long to wait (default 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, which already declare readOnlyHint and openWorldHint false, the description discloses the three non-obvious traits: the call blocks until the user returns, it fires early on timeout (default 10 minutes), and repeated calls are the way to keep waiting. The phrase 'Never takes control back' also makes explicit that this tool does not cause a side effect, which is exactly the assurance an agent needs before parking on a blocking wait.

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?

Three short sentences. The precondition and the waiting behavior come first, and each sentence carries a distinct fact: the handoff context, the return/timeout condition, and the no-side-effect guarantee. It is tight, with only a small amount of overlap between the parenthetical default and the schema.

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

Completeness5/5

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

There is no output schema, and the description compensates by defining exactly when the call returns: control comes back or the timeout elapses. Together with the precondition, the retry pattern, and the design promise that it never takes control back, an agent has everything needed to call this blocking wait correctly.

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 both parameters are already documented in structured fields. The description restates the default of timeout_minutes (10), which the schema already declares, and never mentions space_id. That is adequate but adds nothing beyond the schema, so the baseline of 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?

The description gives a specific verb and resource: wait until the user returns control in the browser, then continue. It also names the triggering sibling action (task.handOff({ message })), so an agent can tell exactly which tool precedes this one and what this tool does that none of the other siblings do.

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?

It states the precondition clearly: call this after handing control to the user, and call it again to keep waiting if the first call times out. That is strong when-to-use guidance. What it does not state is when the agent should avoid waiting at all, such as not calling it without a prior handoff, which is why this is a 4 rather than a 5.

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