Skip to main content
Glama

Connect to a Bar

bar_connect

Connects to a BUSY Bar and saves its USB, Wi-Fi, or cloud address. Auto-discovers one Bar on the current Wi-Fi, lists multiple for selection, and helps during setup or when unreachable.

Instructions

Connect to the user's BUSY Bar and remember it. Without addr it looks for Bars on this Wi-Fi and connects if there is exactly one; with several it lists them so the user can pick. With addr it saves a USB, Wi-Fi or cloud address (or a busybar-wm address). Use it for setup, and when the Bar cannot be reached.

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

Input Schema

NameRequiredDescriptionDefault
addrNoLeave out to search the Wi-Fi
tokenNoCloud token from cloud.busy.app/api-tokens
lan_addrNoOptional LAN fallback for USB. Pass an empty string to remove it.
passwordNoHTTP access password, if the Bar has one

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.12.0
    • addedInput schema / properties / addr / description
      Added value: +"Leave out to search the Wi-Fi"
    • removedInput schema / required
      Removed value: -[
      -  "addr"
      -]
  2. First observedv0.10.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses discovery behavior (search Wi-Fi, auto-connect only if exactly one is found, otherwise list for the user), the address types accepted, and that the connection is remembered. It leaves gaps on what 'remember' means (persistence scope), auth requirements for cloud vs local, and what is returned on success.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, front-loaded with the action and the persistence effect, then the no-addr branch, the addr branch, and the usage trigger. Nothing is repeated from the schema and no sentence is filler.

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 four-parameter connection tool with no annotations and no output schema, the description covers the two modes of operation thoroughly. It could say a bit more about what happens when discovery finds nothing and what the caller gets back, but the core decision path is complete.

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 adds real meaning: omitting addr triggers Wi-Fi discovery, and addr accepts USB, Wi-Fi, cloud, or busybar-wm addresses. token, lan_addr, and password are left to the schema, which already documents them adequately.

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 resource ('Connect to the user's BUSY Bar and remember it') plus the persistent effect of doing so. It is clearly distinguishable from siblings like bar_status or busybar_get_connectivity, which read state rather than establish a connection.

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?

Explicitly says when to use it: 'Use it for setup, and when the Bar cannot be reached,' and then branches on whether addr is supplied. It does not name a specific alternative tool to use instead in failure cases, but the conditional guidance is clear.

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