Skip to main content
Glama

connect

Idempotent

Establish a session to this computer or a remote Windows PC using a 6-digit relay code; run it first so later queries and actions target that machine.

Instructions

Connect to a computer. Without arguments: this computer, directly (the driver app is started if it is not running). With code: a remote computer showing that 6-digit code, through the relay; it connects right away. Call it first: query, act, exec and resume all work on the computer it connects to, and the person at that computer sees an orb while connected. Replies with the computer's name, or why it could not connect. Connecting again replaces the current connection; act { do: "disconnect" } ends it. When reconnecting after a restart, pass waitSec to keep retrying until the driver is back.

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

Input Schema

NameRequiredDescriptionDefault
codeNo6-digit code shown on the remote computer; omit to use this computer
waitSecNoHow long to keep trying if the driver is not up yet; default 0 for a code, 20 for this computer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already mark it non-read-only, open-world, idempotent and non-destructive, but the description adds substantial context beyond them: the driver app is auto-started, remote connections route through the relay and connect immediately, the remote user sees an orb while connected, and reconnecting replaces rather than stacks the current connection. It also discloses the response shape ('the computer's name, or why it could not connect'), which no output schema 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 with the core action, then mode-specific behavior, then the 'call it first' dependency and the disconnect path. It is dense and semicolon-chained, which slightly hurts scanability, but nearly every clause carries distinct operational information rather than restating the name or 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?

With a small two-parameter schema, no output schema, and full annotation coverage, the description closes every remaining gap: it describes both connection paths, the return value, the side effect visible to the remote user, connection lifecycle, and the retry parameter's purpose. Nothing an agent needs in order to invoke it correctly is missing.

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 100%, so the baseline is 3, but the description reinforces the meaning of each parameter in operational terms: code identifies a remote machine currently displaying that 6-digit code, and waitSec is framed as the reconnection-after-restart retry control. This adds context beyond the raw field definitions, though the default values themselves are already in the schema.

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 precise verb and resource ('Connect to a computer') and then splits the two operating modes: no-argument for the local machine and a 6-digit code for a remote machine through the relay. 'Call it first: query, act, exec and resume all work on the computer it connects to' explicitly differentiates it from every named sibling by establishing it as the prerequisite step.

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 when-to-use guidance ('Call it first'), explains the condition selecting each mode (omit code vs supply code), covers the replacement semantics of calling it again, and names the alternative for ending the session ('act { do: "disconnect" }'). It even specifies the narrow reconnect case that justifies waitSec.

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