Skip to main content
Glama

act

Control connected devices through shared capability commands covering power, volume, media, navigation, apps, text, touch, and URL/search.

Instructions

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"}).

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": {
      "device": "<device>",
      "capability": "<capability>",
      "action": "<action>"
    },
    "name": "act"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
actionYes
deviceYes
capabilityYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: it discloses refusal semantics for risky actions, a consent gate on personal devices, default values for `steps`, `times`, `ms`, and `enter`, and that `seek` is approximate. It also explains that touch coordinates are fractions so they line up with `observe` at any size.

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?

The bulleted vocabulary is long but every line is payload, not padding, given the near-empty schema; the safety rules sit directly after the vocabulary and four concrete call examples close it out. Front-loading the addressing model before the enumeration makes it scannable.

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?

An output schema exists, so return values need not be explained, and the safety and argument semantics are unusually complete for a four-parameter tool. The only shortfall is that it never says how to verify the effect afterward (the `state`/`observe` siblings) or what a refusal looks like.

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?

Schema coverage is 0% — the schema is a bare four-property object with no field descriptions — so the description must supply all meaning, and it does: `device` as friendly name or id, `capability`/`action` as vocabulary members, and `args` as a per-capability argument map with names, ranges (level 0-100, fractions 0-1) and defaults spelled out.

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 concrete verb and resource ('Control a device') and immediately defines the three-axis addressing model (device + capability + action from a shared vocabulary). It also names its dependencies, pointing at `devices` for the supported subset and `observe` for screen geometry, so an agent can distinguish this from the read-only siblings.

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 routing rules: capabilities must come from the subset listed by `devices`, `risky_actions` are refused unless the user consented and `confirm=true` is passed, and `strict: true` devices require an explicit human yes before messaging, calling, paying, deleting, or installing. The when-not conditions are as clear as the when conditions.

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