Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ANDROID_HOMENoAndroid SDK location used to find adb at $ANDROID_HOME/platform-tools when it is not on PATH.
CONNECTORS_HOMENoOverride the directory where the hub keeps its state (device registry, logs). Defaults to ~/.connectors/.
CONNECTORS_SUBNETSNoComma-separated list of subnets for the android_adb driver to sweep during discovery, e.g. 10.0.0.0/24,... . Defaults to sweeping the local /24 for TCP 5555.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Controls devices in the user's home (TVs, projectors, ...). Connections are managed for you: never try to connect, pair or find IP addresses yourself. Call devices to see what exists, state to see what a device is doing, act to control it, observe to look at its screen. Refer to a device by its friendly name ("projector"). If a call fails, the error says why in plain words - relay it to the user rather than retrying blindly. Prefer act; use run only when no capability covers the need.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
devicesA

List every known device: id, friendly name, driver, whether it is reachable and approved, and its capabilities with their actions. Start here.

stateB

What a device is doing now: awake or asleep, foreground app, what is playing (title, playing/paused) and the volume, where the device can report them.

actA

Control a device using the shared capability vocabulary.

device is a friendly name or id. capability and action come from this vocabulary (a device supports the subset listed by devices); args is an object with the named arguments:

  • power: on (turn the device on); off (turn the device off); sleep (put the device into standby); wake (wake the device from standby)

  • volume: set (set volume; args: level (0-100)); up (volume up; args: steps (default 1)); down (volume down; args: steps (default 1)); mute (toggle mute)

  • media: play (resume playback); pause (pause playback); toggle (toggle play/pause); seek (seek relative; args: seconds (negative = back; approximate)); next (next item); previous (previous item); stop (stop playback)

  • navigate: up (d-pad up; args: times (default 1)); down (d-pad down; args: times); left (d-pad left; args: times); right (d-pad right; args: times); ok (select / enter); back (go back; args: times); home (go to the home screen); menu (open the menu)

  • apps: list (list launchable apps); open (open an app; args: app (name or package)); close (close an app; args: app (default: the foreground app))

  • text: type (type text into the focused field; args: text, enter (bool, default false))

  • touch: tap (tap the screen; args: x, y as fractions of the screen (0-1, top-left is 0,0)); long_press (press and hold; args: x, y (fractions), ms (default 800)); swipe (swipe; args: x1, y1, x2, y2 (fractions), ms (default 300))

  • open: url (open a URL; args: url, app (optional)); search (search for something; args: query, app (optional))

Actions listed under a device's risky_actions are refused unless the user has clearly said yes and you pass args.confirm=true. A device with strict: true is personal (a phone or tablet). On it, never complete anything that sends a message, makes a call or payment, deletes data or installs an app without first telling the user exactly what will happen and hearing their yes. touch coordinates are fractions of the screen, so they match what observe shows whatever its size. Examples: act("projector", "media", "pause"); act("projector", "volume", "set", {"level": 30}); act("projector", "apps", "open", {"app": "netflix"}); act("projector", "open", "search", {"query": "lofi beats", "app": "youtube"}).

observeA

Take a screenshot of the device's screen and return it as an image. Use it to see menus or check that an action worked. Protected video may appear black.

runA

Escape hatch: run a raw command on the device and return stdout, stderr and exit code.

For android_adb devices the command runs as adb shell <command>. Use this only when act cannot do the job. Commands that look destructive (factory reset / wipe, recursive delete, uninstalling or disabling apps, reboot, dd / mkfs, turning debugging or the network off, ...) are refused. Never pass confirm=true on your own initiative: first tell the user exactly what the command will do, get their spoken "yes", and only then repeat the call with confirm=true. On a device with strict: true every command needs that confirmation, not only destructive ones. timeout is in seconds (max 120); long output is truncated.

rescanA

Search the network for devices right now and return the updated device list. Use it when a device the user mentions is missing or shows as unreachable.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation4/5

Each tool targets a distinct facet: discovery (devices/rescan), structured state, action control, visual observation, and a raw escape hatch. Minor overlap exists between devices and rescan (both return device lists) and between state and observe (both inspect current device status), but the descriptions clarify when to use each.

Naming Consistency3/5

All names are single lowercase words, but the set mixes nouns (devices, state) with verbs (act, observe, rescan, run), so there is no single predictable convention. It remains readable and intuitive, but not a consistent verb_noun pattern.

Tool Count5/5

Six tools is well-scoped for a device-control server: discovery, rescan, state inspection, action, screenshot, and an escape hatch. Each tool has a clear, non-redundant role and earns its place.

Completeness4/5

The surface covers discovery, state, control (via a rich capability vocabulary), visual verification, and raw command fallback, which handles most workflows. Minor gaps remain around managing device approval/pairing and removing or forgetting devices, which the tools reference but do not expose.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues