Skip to main content
Glama

terminal_connect

Connect to an invited device terminal by host URL or connectionRef, wait for one-time human approval, then observe activity, take screenshots, or resume a retained approval without a new invitation.

Instructions

Join an invited device Terminal. Each invited host is a separate connection named by its connectionRef (the invitation host); connecting another host never replaces or disconnects one already connected. To resume a retained approval, pass that host URL with resume:true; no new invitation is needed. Wait for the human to approve once. Approval grants terminal observation and on-demand screenshots; Apps invitations grant AI editing on approval; ordinary Terminal invitations require the human to grant input control.

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": {
      "url": "<url>"
    },
    "name": "terminal_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
resumeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare mutation, open-world, non-idempotent and non-destructive; the description goes well beyond them by explaining that each invited host is an independent connection that is never replaced, that a human approval gate must be waited on once, and what the approval actually grants (observation, screenshots, AI editing for Apps invitations, input control otherwise). It does not disclose failure/timeout behavior if approval never arrives, leaving a gap.

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 connection-model, resume path, and approval consequences in a logical order; no filler sentences. The final sentence is dense with semicolon-separated conditional cases that take a second read.

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 connection tool with no output schema and only coarse annotations, the definition covers the essential flow: invitation, independent connections, approval gate, resume, and per-invitation-type permissions. Missing are the return shape of a joined connection and what happens when approval is denied or times out.

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 description coverage is 0%, so the description must carry both parameters, and it does: `url` is identified as the host/connectionRef of the invitation, and `resume` is given an explicit meaning and value convention (pass the host URL with resume:true to reuse a retained approval). It does not specify URL format or what happens if resume is passed without a retained approval.

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 opening sentence gives a specific verb and resource ('Join an invited device Terminal') and the following sentences pin down the semantics of the resulting connection, so it is clearly distinct from a plain connect/disconnect pair. It stops short of naming a sibling tool to route away from, which keeps it at 4 rather than 5.

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 clear conditional guidance: use this to join an invited host, and use url + resume:true when resuming a retained approval instead of soliciting a fresh invitation. It never states an explicit when-not-to-use case or names an alternative sibling tool, so it is strong context without full exclusion rules.

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