Skip to main content
Glama

Turn TVs on or off

set_tv_power
DestructiveIdempotent

Turn the TV of screens on or off.

When to use:

  • Outside opening hours, or to bring a TV back that someone turned off.

When NOT to use:

  • A frozen player: use reboot_screens.

What to know:

  • Works on TVs that accept HDMI-CEC; the player keeps running. Turn it back with the opposite value. Needs screen.edit.

Parameters:

  • Example: {power:"off", groupId:"sg_lobby"}.

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": {
      "power": "<power>"
    },
    "name": "set_tv_power"
  }
}

Input Schema

NameRequiredDescriptionDefault
powerYeson turns the TV on; off turns it off.
groupIdNoEvery screen in this screen group (list_items kind screen_groups). Use it alone, not with screenId or screenIds.
screenIdNoOne screen that gets the action. A screen id comes from list_items kind screens.
screenIdsNoThe screens that get the action, when there are several. Combined with screenId into one set; each screen gets it once.

Output Schema

NameRequiredDescriptionDefault
queuedNoHow many screens the action was sent to. Screens out of this connection's reach are left out.
stagedNoMany-screen call on a large fleet: screens that get the action in a later wave.
statusNoOne-screen call: the command's state, pending until the device confirms it.
commandIdsNoIds of the commands that were queued, one per screen.
alreadySavedNoMany-screen call: screens left out because they already had this action waiting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed1 schema field changed
    • addedInput schema / properties / power / description
      Added value: +"\"on\" wakes the TV; \"off\" puts it in standby."
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: it requires the screen.edit permission, only works on HDMI-CEC-capable TVs, and the media player keeps running (i.e. it is a display power change, not a reboot). It also clarifies reversibility by turning the TV back with the opposite value, which contextualizes the destructiveHint=true annotation rather than contradicting it.

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 operation, then cleanly sectioned into when-to-use, when-not-to-use, and what-to-know. The trailing parameter example largely repeats the schema and is the one piece that does not earn much space.

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?

Covers purpose, routing, permission requirement, hardware constraint, and side effects, and an output schema exists to explain return values. It stops short of describing behavior when targeting multiple screens where some are not CEC-capable, but overall it is sufficient to call the tool correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the mutually exclusive groupId/screenId/screenIds targeting and the on/off enum are already documented in the schema. The description only adds a redundant example object and no additional semantics, so the baseline 3 applies.

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 (turn TV power on/off for screens), which is distinct from reboot_screens or set_screen_content among the siblings. An agent can identify the operation without opening the schema.

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?

Explicitly defines when to use (outside opening hours, or bringing back a TV someone turned off) and when NOT to use, naming reboot_screens as the alternative for a frozen player. The exclusion is concrete and actionable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources