Skip to main content
Glama

connect

Pairs a device for live layout authoring, with zero-config local connection or relay gateway support.

Instructions

Pair a device for live layout authoring. Hassle-free by default.

target="local" (default): spins up an in-process, auth-free MeshSocket relay on this Mac and builds a QR with the LAN IP — no gateway, no token, no AWS. Just have the phone on the same Wi-Fi (the app allows ws:// on the LAN).

target="relay": use the Connect+ gateway instead (phone can be on any network, wss). The token is taken from token / CARTER_MESH_TOKEN, or auto-minted from the dev validator (validator_url / CARTER_VALIDATOR_URL) so you still don't hand-paste one.

Args: channel: MeshSocket channel name (default 'editor'). role: MeshSocket role for the editor (default 'editor'). target: 'local' (default, zero-config) or 'relay' (gateway). url: gateway ws/wss URL (target='relay' only); else CARTER_RELAY_URL/default. token: gateway token (target='relay' only); else env, else auto-mint. validator_url: dev-validator base URL to mint a token from (target='relay').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
roleNoeditor
tokenNo
targetNolocal
channelNoeditor
validator_urlNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It explains the local mode spins up an in-process relay and builds QR with LAN IP, no auth. For relay, it uses a gateway and token from env or auto-minted. This is transparent, though details on error handling (e.g., missing token) are omitted.

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?

The description is well-structured with paragraphs and a bullet list for args. Each sentence adds value, though it is slightly longer than needed. No redundant information.

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?

Given the tool's complexity (two modes, multiple optional params) and the presence of an output schema, the description covers the key aspects: network requirements, auth methods, and parameter usage. It could mention the output briefly, but the output schema compensates.

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

Parameters5/5

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

Despite 0% schema coverage, the description provides detailed parameter semantics: explains defaults, dependencies (e.g., url/token for relay), and sources (env, auto-mint). This adds significant meaning beyond the schema's bare defaults.

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 clearly states the tool's purpose: 'Pair a device for live layout authoring.' It distinguishes between two modes (local and relay) and differentiates from sibling tools like 'disconnect' and 'show_qr' by focusing on the setup process.

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?

The description gives explicit guidance on when to use each target: 'target='local'' for same Wi-Fi, 'target='relay'' for any network. It explains the prerequisites (same Wi-Fi, app allowing ws://) and alternatives like auto-minting tokens. However, it doesn't explicitly state when not to use the tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mariner10/carter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server