Skip to main content
Glama
Wraith MCP Server

Wraith MCP Server

by YogevKr

handover

Pauses the agent and opens a live page view in the person's browser so they can complete logins, CAPTCHAs, phone codes, payments, or choices only they can do, then resumes on Done, text, URL, or timeout.

Instructions

Give the page to the person on this machine for a step only they can do.

Use it for a login, a code from a phone, a CAPTCHA, a payment approval, or a choice that is the person's. Wraith opens a live view of the page in the person's default browser, with the reason. The person works there and selects Done or "I cannot do this". No agent tool runs in that time, and the agent gets no picture of it.

The handover also ends when until_text shows on the page, when the address holds until_url, or after timeout seconds. Give one of the two when you know what the page shows after the step: Done is a statement, the page is the proof.

This call waits wait seconds. When the person needs more time, the result says so: call handover() again with no arguments to wait more. handover(take_back=True) ends the handover, for example when the person says in the chat that they finished. The result tells how the handover ended, gives the person's note, and lists what changed on the page.

For a login with a passkey or a password manager, it is easier for the person to sign in in their own Firefox: ask them, then call borrow(domain).

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

Input Schema

NameRequiredDescriptionDefault
waitNo
reasonNo
timeoutNo
take_backNo
until_urlNo
until_textNo
include_snapshotNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.29.0

TDQS

A4.7/5.0
Behavior5/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 so: it discloses that a live view opens in the person's default browser, that no agent tool runs during that time, that the agent gets no picture of the page, and the three ways the handover terminates (until_text, until_url, timeout). It also explains the wait/return loop, the take_back escape, and the shape of the result (how it ended, the person's note, what changed) — behavior no structured field here provides.

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?

Front-loaded: the purpose and its use cases come first, then behavior, then parameters, then the sibling alternative. The prose is deliberately paced rather than repetitive, though the multiple short paragraphs run longer than strictly necessary for a tool named handover.

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 are only gestured at, and the description still orients the agent to the result content. The main remaining hole is the undocumented include_snapshot parameter for a seven-parameter, zero-coverage schema; otherwise the definition is complete for a tool of this complexity.

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

Parameters4/5

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

Schema coverage is 0%, so the description must supply meaning, and it does for 6 of 7 parameters: wait is explained via the waiting loop, timeout via the elapsed-seconds condition, reason as what the person sees, take_back as the way to end it, and until_text/until_url as page-state proof of completion. include_snapshot is never mentioned and no defaults are given, which leaves one parameter opaque.

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 specific verb and object (hand the page to the person on this machine) and scopes it precisely to steps only the person can complete. It names concrete cases and explicitly routes passkey/password-manager logins to the sibling borrow(domain), so the agent can separate it from the other tools without reading the schema.

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

Usage Guidelines5/5

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

Gives explicit triggering situations (login, code from a phone, CAPTCHA, payment approval, a choice that is the person's) and an explicit alternative with its condition: when a passkey or password manager is involved, ask the person and call borrow(domain) instead. Nothing 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.