Skip to main content
Glama

handoff

Open the current page in a visible window so the user can solve CAPTCHAs, 2FA prompts, or expired logins and return control with a refreshed session.

Instructions

Let the USER take over in a visible window: CAPTCHAs, 2FA prompts, expired logins, anything you shouldn't or can't do. Opens the current page in a window on their screen; when they close it, this session gets their fresh login. Then call snapshot.

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": {
      "session_id": "<session_id>"
    },
    "name": "handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (which only mark it as a non-read-only, non-idempotent, open-world, non-destructive action), the description discloses the key mechanics: it opens the current page in a window on the user's screen, it is implicitly blocking until they close it, and the session inherits the fresh login afterward. It does not cover what happens on timeout, if the user never closes the window, or whether the call fails.

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 sentences, front-loaded with the purpose and followed by the follow-up action, with no filler. There is mild redundancy between 'in a visible window' and 'Opens the current page in a window on their screen,' which keeps it from a 5.

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 two-parameter human-handoff tool with an output schema available, the description covers purpose, trigger conditions, blocking behavior, and the required follow-up call. The main unresolved gap is what the 'reason' field does and how the blocking window resolves if the user abandons it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries full burden, yet neither parameter is mentioned. The required session_id is only indirectly implied by 'this session gets their fresh login,' and the 'reason' parameter — presumably surfaced to the user — is entirely unexplained.

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 capability — handing browser control to the human user in a visible window — with concrete triggering cases (CAPTCHAs, 2FA, expired logins). It is clearly a human-in-the-loop escape hatch rather than a sibling operation, though it never names related tools like start_login or complete_login to sharpen the boundary.

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 gives explicit when-to-use conditions (CAPTCHAs, 2FA prompts, expired logins, anything the agent shouldn't or can't do) and ends with a prescribed next step: 'Then call snapshot.' It lacks any when-not-to-use guidance or named alternatives, so it stops short of full routing guidance.

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